From bd64d11f7621e6616ab639cbbb7d37fd82a54946 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 dfeb3ba74f3120a49ba6e2289ee9719dffe61af1 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 3d1e3eabaa..9f1bc02b97 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; } }