1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00
* Fixed: Video player issues related to last update and test code.
This commit is contained in:
SirStendec 2021-08-16 17:51:32 -04:00
parent 207fda2b36
commit c1fba86dc9
2 changed files with 4 additions and 2 deletions

View file

@ -1,7 +1,7 @@
{
"name": "frankerfacez",
"author": "Dan Salvato LLC",
"version": "4.28.4",
"version": "4.28.5",
"description": "FrankerFaceZ is a Twitch enhancement suite.",
"private": true,
"license": "Apache-2.0",

View file

@ -973,6 +973,8 @@ export default class PlayerBase extends Module {
return;
}
const t = this;
document.addEventListener('fullscreenchange', () => {
const fs = document.fullscreenElement,
pip = document.pictureInPictureElement;
@ -995,7 +997,7 @@ export default class PlayerBase extends Module {
if ( document.pictureInPictureElement != null )
return false;
if ( this.settings.get('player.force-visible') )
if ( t.settings.get('player.force-visible') )
return false;
return document.visibilityState === 'hidden';