Fix regression with fullscreen keybind.

For https://github.com/TeamPiped/Piped/issues/139#issuecomment-824821636
This commit is contained in:
FireMasterK 2021-04-22 18:51:45 +05:30
parent 57509b9185
commit a2afdb0b4d
No known key found for this signature in database
GPG key ID: 8DFF5DD33E93DB58

View file

@ -116,6 +116,7 @@ export default {
case "KeyF": case "KeyF":
if (document.fullscreenElement) document.exitFullscreen(); if (document.fullscreenElement) document.exitFullscreen();
else this.$refs.container.requestFullscreen(); else this.$refs.container.requestFullscreen();
e.preventDefault();
break; break;
case "KeyM": case "KeyM":
videoEl.muted = !videoEl.muted; videoEl.muted = !videoEl.muted;