Skip to content
Snippets Groups Projects
Commit 09d81def authored by Sho Kusano's avatar Sho Kusano Committed by Eugen Rochko
Browse files

Suppress type error(not a function) on calling fastSeek (#5452)

parent 3810d98c
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,11 @@ const createAudio = sources => {
const play = audio => {
if (!audio.paused) {
audio.pause();
audio.fastSeek(0);
if (typeof audio.fastSeek === 'function') {
audio.fastSeek(0);
} else {
audio.seek(0);
}
}
audio.play();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment