mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 02:49:51 +00:00
Cleanup
This commit is contained in:
@@ -11,7 +11,7 @@ export const startViewTransition = async (
|
||||
!document.startViewTransition ||
|
||||
window.matchMedia("(prefers-reduced-motion: reduce)").matches
|
||||
) {
|
||||
// Fallback: just run the update without transition
|
||||
// Fallback: run the update without a transition
|
||||
await updateCallback();
|
||||
return;
|
||||
}
|
||||
@@ -23,10 +23,8 @@ export const startViewTransition = async (
|
||||
|
||||
try {
|
||||
await transition.finished;
|
||||
} catch (error) {
|
||||
// Transitions can be skipped, which is fine
|
||||
// eslint-disable-next-line no-console
|
||||
console.debug("View transition skipped or failed:", error);
|
||||
} catch (_error) {
|
||||
// Transitions can be skipped
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user