diff options
Diffstat (limited to 'web/script/player')
-rw-r--r-- | web/script/player/mod.ts | 2 |
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))) |