mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-01 19:00:56 +00:00
4.28.5
* Fixed: Video player issues related to last update and test code.
This commit is contained in:
parent
207fda2b36
commit
c1fba86dc9
2 changed files with 4 additions and 2 deletions
|
@ -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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue