소스 검색

Fixed loading issue on non-Fx mobile browsers

Nathaniel van Diepen 10 년 전
부모
커밋
5d971da900
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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({