chore: Enforce a few house rules via eslint (#2539)
This commit is contained in:
committed by
dermotduffy
parent
5572ec728e
commit
921d45e577
@@ -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(() => {});
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user