mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +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
a3227c81e8
commit
f17cf1ee0e
@ -479,7 +479,14 @@ import {tapAndSwipe} from "../../api/js/tapandswipe";
|
|||||||
|
|
||||||
//Audio effect for toggleMenu
|
//Audio effect for toggleMenu
|
||||||
var audio = jQuery('#egw_fw_menuAudioTag');
|
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