From c06838b67f9c5c9ad443af05a7d6d24149732472 Mon Sep 17 00:00:00 2001 From: kaffem <29717789+kaffem@users.noreply.github.com> Date: Mon, 8 Feb 2021 06:04:48 +0100 Subject: [PATCH] renamed onVisible to resumePlayerOnVisible to indicate its a boolean --- src/javascript/enhancements/anilyr.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/javascript/enhancements/anilyr.ts b/src/javascript/enhancements/anilyr.ts index 64e7f0b..82a9c98 100644 --- a/src/javascript/enhancements/anilyr.ts +++ b/src/javascript/enhancements/anilyr.ts @@ -7,7 +7,7 @@ import * as helper from '../utils/helpers'; const SCREENSHOT_TOOLTIP_ID = 'anilyr-screenshots-tooltip'; const PLAYER_ID = 'player'; -let onVisible: boolean; +let resumePlayerOnVisible: boolean; export function init(): void { getGlobalConfiguration().getProperty(SETTINGS_playerAutoplayAfterScreenshot, value => { @@ -30,7 +30,7 @@ export function init(): void { }); getGlobalConfiguration().getProperty(SETTINGS_playerAutoplayAfterFocusGain, value => { - onVisible = value; + resumePlayerOnVisible = value; }); } @@ -62,7 +62,7 @@ function observeTabFocus(): void { pausePlayer(playerElement); } } - else if (docState === 'visible' && onVisible) { + else if (docState === 'visible' && resumePlayerOnVisible) { if (helper.assigned(playerElement)) { resumePlayer(playerElement); }