]> cat aescling's git repositories - mastodon.git/commitdiff
Audio.prototype.seek is undefined (#5935)
authorYamagishi Kazutoshi <ykzts@desire.sh>
Sat, 9 Dec 2017 00:25:00 +0000 (09:25 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 9 Dec 2017 00:25:00 +0000 (01:25 +0100)
app/javascript/mastodon/middleware/sounds.js

index 3d1e3eabaa0fefb43fcb418611a994c31e54c33c..9f1bc02b97405fce7b15db324fe42f4fddfff6a7 100644 (file)
@@ -15,7 +15,7 @@ const play = audio => {
     if (typeof audio.fastSeek === 'function') {
       audio.fastSeek(0);
     } else {
-      audio.seek(0);
+      audio.currentTime = 0;
     }
   }