There was an error while loading. Please reload this page.
1 parent 69ea85a commit bee3aaeCopy full SHA for bee3aae
src/practaid/events.cljs
@@ -442,7 +442,6 @@
442
(rf/dispatch [::player-requests-access-token callback]))
443
:volume 0.5}))
444
_ (.addListener player "autoplay_failed"
445
- ;; TODO move me
446
(fn [] (js/console.error "Autoplay is not allowed by the browser autoplay rules.")))
447
448
_ (.addListener player "ready"
@@ -564,7 +563,7 @@
564
563
(let [item (db/playback-track db)
565
track-duration-ms (:duration_ms item)]
566
(if track-duration-ms
567
- {:fx [[:dispatch [::reset-looper (* track-duration-ms pos-frac)]]]}
+ {:fx [[:dispatch [::reset-looper (int (* track-duration-ms pos-frac))]]]}
568
{}))))
569
570
(rf/reg-event-fx
0 commit comments