v1.5.2/fullscreen support

This commit is contained in:
2020-07-25 22:15:03 -04:00
parent 960d2af748
commit 7c61486542
8 changed files with 77 additions and 11 deletions
+13
View File
@@ -40,6 +40,19 @@ const PartyWrapper = document.createElement('div');
PartyWrapper.id = 'party_wrapper';
document.body.appendChild(PartyWrapper);
document.addEventListener(
'keydown',
(ev) => {
if (ev.code === 'KeyF') {
if (ev.target.tagName !== 'INPUT' && ev.target.tagName !== 'TEXTAREA') {
ev.stopImmediatePropagation();
ev.stopPropagation();
}
}
},
{ capture: true }
);
switch (getPlayerSource()) {
case PLAYER_SOURCE.NETFLIX:
document.body.classList.add('netflix');