about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-12-09 09:25:00 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-12-09 01:25:00 +0100
commitf08e6e9ab54a72cc20b33b270789c245b5cfde39 (patch)
tree782a35efaf5548c85c0eed99f5b3118bd9fb854e
parent86b4d5439caf717fc549a6036ca50a661badbd55 (diff)
Audio.prototype.seek is undefined (#5935)
-rw-r--r--app/javascript/mastodon/middleware/sounds.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/middleware/sounds.js b/app/javascript/mastodon/middleware/sounds.js
index 3d1e3eaba..9f1bc02b9 100644
--- a/app/javascript/mastodon/middleware/sounds.js
+++ b/app/javascript/mastodon/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;
     }
   }