Skip to content

Commit

Permalink
Update player.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ImprovedTube authored May 21, 2024
1 parent 10748af commit ebbb5b3
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions menu/skeleton-parts/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,6 @@ extension.skeleton.main.layers.section.player.on.click = {
}
}
},
quality_when_low_battery: {
component: 'switch',
text: 'qualityWhenLowBattery',
storage: 'player_quality_when_low_battery',
id: 'quality_when_low_battery',
on: {
click: function () {
if (satus.storage.get('player_quality_when_low_battery') != "") {
document.getElementById('quality_when_low_battery').flip(true);
}
}
}
},
only_one_player_instance_playing: {
component: 'switch',
text: 'onlyOnePlayerInstancePlaying',
Expand Down Expand Up @@ -759,6 +746,23 @@ extension.skeleton.main.layers.section.player.on.click = {
}
}
},
qualityWhenRunningOnBattery: {
component: 'switch',
text: 'qualityWhenRunningOnBattery',
on: {
render: function () {
extension.skeleton.main.layers.section.player.on.click.section_1.player_quality.on.render.call(this);
}
}
},
whenBatteryIslowDecreaseQuality: {
component: 'switch',
text: 'whenBatteryIslowDecreaseQuality'
},
pauseWhileIUnplugTheCharger: {
component: 'switch',
text: 'pauseWhileIUnplugTheCharger'
},
mini_player: {
component: 'switch',
text: 'customMiniPlayer'
Expand Down

0 comments on commit ebbb5b3

Please sign in to comment.