about summary refs log tree commit diff
path: root/app/javascript/flavours
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-09-06 18:33:49 +0200
committerThibG <thib@sitedethib.com>2018-09-07 20:37:17 +0200
commitf4ca3262f287b9b18114201d6b68161fdf324e19 (patch)
tree50a5820a0793f31a3db4301daab1271177b5205f /app/javascript/flavours
parent8dbbec09394fa332b1856f1c4bbda0b5ba7d36a2 (diff)
[Glitch] Audio.prototype.seek is undefined
Port f08e6e9ab54a72cc20b33b270789c245b5cfde39 to glitch-soc
Diffstat (limited to 'app/javascript/flavours')
-rw-r--r--app/javascript/flavours/glitch/middleware/sounds.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/middleware/sounds.js b/app/javascript/flavours/glitch/middleware/sounds.js
index 3d1e3eaba..9f1bc02b9 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;
     }
   }