fix so opera/IE dont bug out on Notification

This commit is contained in:
Tor Hveem 2013-10-24 22:51:50 +02:00
parent 0d963f2fd8
commit f1eddd3022

View file

@ -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) { 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 // Request notification permission
Notification.requestPermission(function (status) { Notification.requestPermission(function (status) {
$log.info('Notification permission status:',status); $log.info('Notification permission status:',status);
@ -350,7 +349,6 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
}else { }else {
$scope.isinstalled = false; $scope.isinstalled = false;
} }
console.log($scope.isinstalled);
} }
}else { }else {
$scope.isinstalled = false; $scope.isinstalled = false;