Skip to content

Commit

Permalink
returning previous behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
ImprovedTube committed May 17, 2023
1 parent 9bc7880 commit 8bd2be2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"short_name" : "ImprovedTube",
"name": "'Improve YouTube!' 🎧 (for YouTube & Videos)",
"description": "__MSG_description_ext__",
"version": "4.9",
"version": "4.11",
"default_locale": "en",
"icons": {
"16": "stuff/icons/16.png",
Expand Down
6 changes: 5 additions & 1 deletion menu/skeleton-parts/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ extension.skeleton.main.layers.section.player.on.click = {
if (this.dataset.value === 'true' && satus.storage.get('only_one_player_instance_playing')) {
document.getElementById('only_one_player_instance_playing').flip(false);
}
if (this.dataset.value === 'true' && satus.storage.get('player_autoPip')) {
document.getElementById('player_autoPip').flip(false);
}
}
}
},
Expand All @@ -90,7 +93,8 @@ extension.skeleton.main.layers.section.player.on.click = {
on: {
click: function () {
if (this.dataset.value === 'true' && satus.storage.get('player_autopause_when_switching_tabs')) {
document.getElementById('only_one_player_instance_playing').flip(false);
document.getElementById('only_one_player_instance_playing').flip(true);
document.getElementById('autopause_when_switching_tabs').flip(false);
}
}
}
Expand Down

0 comments on commit 8bd2be2

Please sign in to comment.