diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-05-21 20:38:19 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-05-21 20:38:19 +0200 |
| commit | 95a65d718c3bc50324a0f4a75aa5a586eeadc4ef (patch) | |
| tree | 5a6621200fe241140c7a6487cab89076e9ff4c19 /web/client.html | |
| parent | 5b07fd9134e4a94dc71032fb8a9daca594f8a8a9 (diff) | |
| download | WRMS-95a65d718c3bc50324a0f4a75aa5a586eeadc4ef.tar.gz WRMS-95a65d718c3bc50324a0f4a75aa5a586eeadc4ef.zip | |
only add playbutton eventlistener for admins
Diffstat (limited to 'web/client.html')
| -rw-r--r-- | web/client.html | 2 |
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> |
