From f1eddd302275abcb9a90141fd12d8bd8e4170ac6 Mon Sep 17 00:00:00 2001 From: Tor Hveem Date: Thu, 24 Oct 2013 22:51:50 +0200 Subject: [PATCH] fix so opera/IE dont bug out on Notification --- js/websockets.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/websockets.js b/js/websockets.js index dfc7a14..3531878 100644 --- a/js/websockets.js +++ b/js/websockets.js @@ -324,8 +324,7 @@ weechat.factory('connection', ['$q', '$rootScope', '$log', '$store', 'handlers', weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', '$log', 'models', 'connection', function ($rootScope, $scope, $store, $timeout, $log, models, connection, testService) { - if(Notification != undefined) { - + if(window.Notification) { // Request notification permission Notification.requestPermission(function (status) { $log.info('Notification permission status:',status); @@ -350,7 +349,6 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', }else { $scope.isinstalled = false; } - console.log($scope.isinstalled); } }else { $scope.isinstalled = false;