mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
[Glitch] Audio.prototype.seek is undefined
Port f08e6e9ab5
to glitch-soc
This commit is contained in:
parent
8dbbec0939
commit
f4ca3262f2
@ -15,7 +15,7 @@ const play = audio => {
|
|||||||
if (typeof audio.fastSeek === 'function') {
|
if (typeof audio.fastSeek === 'function') {
|
||||||
audio.fastSeek(0);
|
audio.fastSeek(0);
|
||||||
} else {
|
} else {
|
||||||
audio.seek(0);
|
audio.currentTime = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user