From 95a65d718c3bc50324a0f4a75aa5a586eeadc4ef Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 21 May 2023 20:38:19 +0200 Subject: only add playbutton eventlistener for admins --- web/client.html | 2 ++ 1 file changed, 2 insertions(+) (limited to 'web/client.html') 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}} } -- cgit v1.2.3