aboutsummaryrefslogtreecommitdiff
path: root/web/script
diff options
context:
space:
mode:
Diffstat (limited to 'web/script')
-rw-r--r--web/script/player/mod.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/script/player/mod.ts b/web/script/player/mod.ts
index 1a977e2..09f9dcc 100644
--- a/web/script/player/mod.ts
+++ b/web/script/player/mod.ts
@@ -58,7 +58,7 @@ function initialize_player(el: HTMLElement, node_id: string) {
let pri_current: HTMLElement;
let pri: HTMLElement;
const controls = e("div", { class: "jsp-controls" },
- player.playing.map(playing => e("button", playing ? "||" : "|>", { onclick() { } })),
+ player.playing.map(playing => e("button", playing ? "||" : "|>", { onclick: toggle_playing })),
e("p", { class: "jsp-status" },
player.position.map(v => e("span", display_time(v))), e("br"),
player.position.map(v => e("span", display_time(v - player.duration.value)))