mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03: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'
|
'keydown','keyup'
|
||||||
],
|
],
|
||||||
unlock = () => {
|
unlock = () => {
|
||||||
|
unlockEvents.forEach(type => doc.removeEventListener(type, unlock, true));
|
||||||
if (audioCtx) {
|
if (audioCtx) {
|
||||||
console.log('AudioContext ' + audioCtx.state);
|
console.log('AudioContext ' + audioCtx.state);
|
||||||
audioCtx.resume();
|
audioCtx.resume();
|
||||||
}
|
}
|
||||||
unlockEvents.forEach(type => doc.removeEventListener(type, unlock, true));
|
|
||||||
// setTimeout(()=>SMAudio.playNotification(0,1),1);
|
// setTimeout(()=>SMAudio.playNotification(0,1),1);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue