mirror of
https://github.com/heyarne/airsonic-ui.git
synced 2026-05-07 10:43:39 +02:00
Be more consistent when naming events
This commit is contained in:
parent
4639f4ef27
commit
a9c95bc4a8
3 changed files with 25 additions and 20 deletions
|
|
@ -18,7 +18,7 @@
|
|||
; explanation of these events: https://developer.mozilla.org/en-US/Apps/Fundamentals/Audio_and_video_delivery/Cross-browser_audio_basics
|
||||
(defn attach-listeners! [el]
|
||||
(doseq [event ["loadstart" "progress" "play" "timeupdate" "pause"]]
|
||||
(.addEventListener el event #(re-frame/dispatch [:audio-update (->status el)]))))
|
||||
(.addEventListener el event #(re-frame/dispatch [:audio/update (->status el)]))))
|
||||
|
||||
(re-frame/reg-fx
|
||||
:play-song
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue