mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 06:57:03 +03:00
Update dependencies
This commit is contained in:
parent
a30fc911f6
commit
b28d4f8cf3
7 changed files with 503 additions and 99 deletions
|
|
@ -1,6 +1,5 @@
|
|||
|
||||
import window from 'window';
|
||||
import $ from '$';
|
||||
import {bMobileDevice, bSafari} from 'Common/Globals';
|
||||
import * as Links from 'Common/Links';
|
||||
import * as Events from 'Common/Events';
|
||||
|
|
@ -38,8 +37,12 @@ class Audio
|
|||
|
||||
if (this.supported)
|
||||
{
|
||||
$(this.player).on('ended error', () => this.stop());
|
||||
Events.sub('audio.api.stop', () => this.stop());
|
||||
const stopFn = () => this.stop();
|
||||
|
||||
this.player.addEventListener('ended', stopFn);
|
||||
this.player.addEventListener('error', stopFn);
|
||||
|
||||
Events.sub('audio.api.stop', stopFn);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue