This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Suppress type error(not a function) on calling fastSeek (
#5452
)
pull/4/head
Sho Kusano
6 years ago
committed by
Eugen Rochko
parent
3810d98cd8
commit
09d81defcd
1 changed files
with
5 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-1
app/javascript/mastodon/middleware/sounds.js
+ 5
- 1
app/javascript/mastodon/middleware/sounds.js
View File
@ -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
(
)
;
Write
Preview
Loading…
Cancel
Save