aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-05-21 20:38:19 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-05-21 20:38:19 +0200
commit95a65d718c3bc50324a0f4a75aa5a586eeadc4ef (patch)
tree5a6621200fe241140c7a6487cab89076e9ff4c19 /web
parent5b07fd9134e4a94dc71032fb8a9daca594f8a8a9 (diff)
downloadWRMS-95a65d718c3bc50324a0f4a75aa5a586eeadc4ef.tar.gz
WRMS-95a65d718c3bc50324a0f4a75aa5a586eeadc4ef.zip
only add playbutton eventlistener for admins
Diffstat (limited to 'web')
-rw-r--r--web/client.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/client.html b/web/client.html
index a371c43..77a4bfe 100644
--- a/web/client.html
+++ b/web/client.html
@@ -300,9 +300,11 @@
}
window.onload = function() {
+ {{if .IsAdmin}}
document.getElementById("ppbutton").addEventListener("click", function() {
new HttpClient().get("/playpause", console.log);
});
+ {{end}}
}
</script>
</head>