mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
catch for notificationa not existing on some devices
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user