mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 02:43:22 +01:00
Update fw_mobile.js
Google Chrome returns this error when using EGroupware on mobile: VM6367 fw_mobile.js:487 Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. https://goo.gl/xX8pDD
This commit is contained in:
parent
4d3fbe1b6c
commit
1c5ba62083
@ -484,7 +484,14 @@
|
||||
|
||||
//Audio effect for toggleMenu
|
||||
var audio = jQuery('#egw_fw_menuAudioTag');
|
||||
if (egw.preference('audio_effect','common') == '1') audio[0].play();
|
||||
if (egw.preference('audio_effect','common') == '1') {
|
||||
try {
|
||||
audio[0].play();
|
||||
}
|
||||
catch(err) {
|
||||
console.log(err);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user