diff --git a/test/js/samples/media-bindings/expected.js b/test/js/samples/media-bindings/expected.js index f45f9ce8db..b67bc31ed3 100644 --- a/test/js/samples/media-bindings/expected.js +++ b/test/js/samples/media-bindings/expected.js @@ -19,8 +19,10 @@ function create_fragment(ctx) { function audio_timeupdate_handler() { cancelAnimationFrame(audio_animationframe); - if (!audio.paused) audio_animationframe = raf(audio_timeupdate_handler); - audio_updating = true; + if (!audio.paused) { + audio_animationframe = raf(audio_timeupdate_handler); + audio_updating = true; + } ctx.audio_timeupdate_handler.call(audio); }