Merge with upstrea/development
[KiwiIRC.git] / client / src / applets / settings.js
index f041ab196506c6ba4efe2fcbed8ceb52707540e2..aa5896d22d319520d69f49a8c006b01e2d021acc 100644 (file)
         },\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