1
0
Fork 0
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:
Arne Schlüter 2018-04-22 01:29:04 +02:00
commit a9c95bc4a8
3 changed files with 25 additions and 20 deletions

View file

@ -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