aboutsummaryrefslogtreecommitdiff
path: root/web/client.html
diff options
context:
space:
mode:
Diffstat (limited to 'web/client.html')
-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>