Fix fullscreen not being done properly when using keybind.

This commit is contained in:
FireMasterK 2021-09-22 14:48:32 +01:00
parent bb918645b1
commit 172d542cd3
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -305,7 +305,7 @@ export default {
switch (handler.key) {
case "f":
if (document.fullscreenElement) document.exitFullscreen();
else document.querySelector("video[data-shaka-player]").requestFullscreen();
else self.ui.getControls().toggleFullScreen();
e.preventDefault();
break;
case "m":