mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-02-10 03:19:38 +00:00
Added functionality for intelligent playlist, making voting and such easier on many listeners
This commit is contained in:
@@ -35,7 +35,7 @@ var Hostcontroller = {
|
||||
|
||||
host_on_action: function(arr) {
|
||||
if(client) return;
|
||||
if(enabled){
|
||||
if(Hostcontroller.enabled){
|
||||
if(arr.type == "volume") {
|
||||
try {
|
||||
Playercontrols.visualVolume(arr.value);
|
||||
@@ -75,9 +75,9 @@ var Hostcontroller = {
|
||||
|
||||
change_enabled:function(val){
|
||||
if(client) return;
|
||||
enabled = val;
|
||||
Hostcontroller.enabled = val;
|
||||
try {
|
||||
document.querySelector(".remote_switch_class").checked = enabled;
|
||||
document.querySelector(".remote_switch_class").checked = Hostcontroller.enabled;
|
||||
}catch(e) {}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user