Skip to content

Commit 716ce9b

Browse files
committed
Only run viewTransition if API is available (fix e2e test on old firefox, support older browsers)
1 parent 87ce738 commit 716ce9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/hooks/data/useRetroReducer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function useRetroReducer(
5151
const animation = events.some(([evt]) => evt === 'archive')
5252
? 'archive'
5353
: null;
54-
if (animation) {
54+
if (animation && document.startViewTransition) {
5555
const viewTransition = document.startViewTransition({
5656
update: () => flushSync(() => setRetroState(setter)),
5757
types: [animation],

0 commit comments

Comments
 (0)