diff --git a/app/assets/javascripts/discourse/initializers/subscribe-user-notifications.js.es6 b/app/assets/javascripts/discourse/initializers/subscribe-user-notifications.js.es6 index 8cff064d794..d82cfc87a86 100644 --- a/app/assets/javascripts/discourse/initializers/subscribe-user-notifications.js.es6 +++ b/app/assets/javascripts/discourse/initializers/subscribe-user-notifications.js.es6 @@ -1,5 +1,5 @@ // Subscribes to user events on the message bus -import { init as initDesktopNotifications, onNotification } from 'discourse/lib/desktop-notifications' +import { init as initDesktopNotifications, onNotification } from 'discourse/lib/desktop-notifications'; export default { name: 'subscribe-user-notifications', @@ -16,7 +16,7 @@ export default { if (bus.baseUrl !== '/') { // zepto compatible, 1 param only - bus.ajax = function(opts){ + bus.ajax = function(opts) { opts.headers = opts.headers || {}; opts.headers['X-Shared-Session-Key'] = $('meta[name=shared_session_key]').attr('content'); return $.ajax(opts); @@ -50,8 +50,8 @@ export default { } }, user.notification_channel_position); - bus.subscribe("/categories", function(data){ - _.each(data.categories,function(c){ + bus.subscribe("/categories", function(data) { + _.each(data.categories,function(c) { site.updateCategory(c); }); }); diff --git a/app/assets/javascripts/discourse/lib/desktop-notifications.js.es6 b/app/assets/javascripts/discourse/lib/desktop-notifications.js.es6 index 5d1a546f8a4..e24f325223e 100644 --- a/app/assets/javascripts/discourse/lib/desktop-notifications.js.es6 +++ b/app/assets/javascripts/discourse/lib/desktop-notifications.js.es6 @@ -31,9 +31,9 @@ function init(container) { Em.Logger.error(e); } } - }).catch(function(e) { + }).catch(function() { liveEnabled = false; - Em.Logger.info('Discourse desktop notifications are disabled - permission denied.'); + //Em.Logger.debug('Discourse desktop notifications are disabled - permission denied.'); }); }