mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-24 23:08:08 +08:00
Unregister audio initialization event listeners first
This commit is contained in:
parent
58bcbc3aad
commit
d73a179f59
1 changed files with 1 additions and 1 deletions
|
@ -46,11 +46,11 @@ let notificator = null,
|
|||
'keydown','keyup'
|
||||
],
|
||||
unlock = () => {
|
||||
unlockEvents.forEach(type => doc.removeEventListener(type, unlock, true));
|
||||
if (audioCtx) {
|
||||
console.log('AudioContext ' + audioCtx.state);
|
||||
audioCtx.resume();
|
||||
}
|
||||
unlockEvents.forEach(type => doc.removeEventListener(type, unlock, true));
|
||||
// setTimeout(()=>SMAudio.playNotification(0,1),1);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue