Added functionality for intelligent playlist, making voting and such easier on many listeners

This commit is contained in:
Kasper Rynning-Tønnesen
2018-10-29 14:19:59 +01:00
parent 6cbf7a211e
commit 6443974c7a
8 changed files with 131 additions and 35 deletions

View File

@@ -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) {}
}
};