Browse Source

Fixed loading issue on non-Fx mobile browsers

Nathaniel van Diepen 10 years ago
parent
commit
5d971da900
1 changed files with 2 additions and 2 deletions
  1. 2 2
      js/index.js

+ 2 - 2
js/index.js

@@ -599,7 +599,7 @@
 		},
 		notify = window.notify = function(title,text,onclick,onclose){
 			var notification;
-			if(exists(window.Notification)&&!exists(window.webkitNotifications)&&!flag('default_notify')&&!hasFocus()){
+			if(exists(window['Notification'])&&!exists(window.webkitNotifications)&&!flag('default_notify')&&!hasFocus()){
 				if(Notification.permission === 'denied'){
 					flag('default_notify',true);
 					notify(title,text,onclick,onclose);
@@ -742,7 +742,7 @@
 		setKey(null);
 	}
 	$(document).ready(function(){
-		if(exists(typeof Notification.permission)&&Notification.permission !== 'granted'){
+		if(exists(window['Notification'])&&exists(Notification.permission)&&Notification.permission !== 'granted'){
 			Notification.requestPermission();
 		}
 		$.ajaxSetup({