catch for notificationa not existing on some devices

This commit is contained in:
Your Name
2018-07-15 15:44:43 -04:00
parent c75537d4b8
commit 4dfe5e061f
3 changed files with 52 additions and 49 deletions

View File

@@ -282,8 +282,9 @@ var Channel = {
}
if(!Helper.msieversion() && !Helper.mobilecheck() && !client) Notification.requestPermission();
try {
if(!Helper.msieversion() && !Helper.mobilecheck() && !client && Notification != undefined) Notification.requestPermission();
}catch(e){}
document.getElementsByClassName("search_input")[0].focus();
Helper.sample();