},\r
\r
enableNoticiations: function(event){\r
- window.webkitNotifications.requestPermission();\r
+ event.preventDefault();\r
+\r
+ if ('webkitNotifications' in window) {\r
+ window.webkitNotifications.requestPermission();\r
+ } else if ('Notification' in window) {\r
+ Notification.requestPermission();\r
+ }\r
}\r
\r
});\r