diff --git a/src/chrome/js/background-inject.js b/src/chrome/js/background-inject.js index 1577e52..59e2d1f 100644 --- a/src/chrome/js/background-inject.js +++ b/src/chrome/js/background-inject.js @@ -1052,7 +1052,7 @@ function mainScript(extensionId, SettingData, defaultSettings) { const onCreated = api => { api.addEventListener("onStateChange", state => { - if (iridiumSettings.videoFocus && iridiumSettings.videoFocusToggle) { + if (iridiumSettings.videoFocus) { switch (state) { case 1: case 3: @@ -1066,7 +1066,7 @@ function mainScript(extensionId, SettingData, defaultSettings) { }; const update = () => { - if (iridiumSettings.videoFocus && iridiumSettings.videoFocusToggle) { + if (iridiumSettings.videoFocus) { document.getElementById("iridium-video-focus")?.setAttribute("iridium-enabled", ""); switch (document.getElementById("movie_player")?.["getPlayerState"]?.()) { case 1: diff --git a/src/firefox/js/background-inject.js b/src/firefox/js/background-inject.js index 1577e52..59e2d1f 100644 --- a/src/firefox/js/background-inject.js +++ b/src/firefox/js/background-inject.js @@ -1052,7 +1052,7 @@ function mainScript(extensionId, SettingData, defaultSettings) { const onCreated = api => { api.addEventListener("onStateChange", state => { - if (iridiumSettings.videoFocus && iridiumSettings.videoFocusToggle) { + if (iridiumSettings.videoFocus) { switch (state) { case 1: case 3: @@ -1066,7 +1066,7 @@ function mainScript(extensionId, SettingData, defaultSettings) { }; const update = () => { - if (iridiumSettings.videoFocus && iridiumSettings.videoFocusToggle) { + if (iridiumSettings.videoFocus) { document.getElementById("iridium-video-focus")?.setAttribute("iridium-enabled", ""); switch (document.getElementById("movie_player")?.["getPlayerState"]?.()) { case 1: