Skip to content

Commit

Permalink
Closes #933
Browse files Browse the repository at this point in the history
  • Loading branch information
ParticleCore committed Feb 28, 2024
1 parent 350afdd commit 9b80e3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/chrome/js/background-inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions src/firefox/js/background-inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 9b80e3e

Please sign in to comment.