From f4ca3262f287b9b18114201d6b68161fdf324e19 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Thu, 6 Sep 2018 18:33:49 +0200 Subject: [PATCH] [Glitch] Audio.prototype.seek is undefined Port f08e6e9ab54a72cc20b33b270789c245b5cfde39 to glitch-soc --- app/javascript/flavours/glitch/middleware/sounds.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/middleware/sounds.js b/app/javascript/flavours/glitch/middleware/sounds.js index 3d1e3eabaa0..9f1bc02b974 100644 --- a/app/javascript/flavours/glitch/middleware/sounds.js +++ b/app/javascript/flavours/glitch/middleware/sounds.js @@ -15,7 +15,7 @@ const play = audio => { if (typeof audio.fastSeek === 'function') { audio.fastSeek(0); } else { - audio.seek(0); + audio.currentTime = 0; } }