chore: Enforce a few house rules via eslint (#2539)

This commit is contained in:
Dermot Duffy
2026-06-30 17:45:13 -07:00
committed by dermotduffy
parent 5572ec728e
commit 921d45e577
100 changed files with 479 additions and 295 deletions
@@ -32,9 +32,12 @@ export class ScreenfullFullScreenProvider
}
if (fullscreen) {
screenfull.request(this._api.getCardElementManager().getElement());
// A denied request (or an exit when not in fullscreen) leaves the UI
// consistent: the 'change' handler only fires on a real transition.
// Nothing to act on.
screenfull.request(this._api.getCardElementManager().getElement()).catch(() => {});
} else {
screenfull.exit();
screenfull.exit().catch(() => {});
}
}
}
@@ -85,7 +85,10 @@ export class WebkitFullScreenProvider
// clicking the 'X' which then fires this event). That's probably the rare
// case though.
this._playTimer.start(WEBKIT_PLAY_SECONDS, () => {
this._getVideoElement()?.play();
// Best-effort resume after a fullscreen exit.
this._getVideoElement()
?.play()
.catch(() => {});
});
};
}