From 1875377684bce036c911df5a10d18d1bff1aab16 Mon Sep 17 00:00:00 2001 From: Minhaz A V Date: Tue, 22 Mar 2016 17:51:17 +0530 Subject: [PATCH] Some style fixes Signed-off-by: Minhaz A V --- src/Notifier.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Notifier.js b/src/Notifier.js index c4dd99f96f..7157dd9c44 100644 --- a/src/Notifier.js +++ b/src/Notifier.js @@ -156,14 +156,14 @@ var Notifier = { // Case when we do not have the permission as 'granted' if (this.isPermissionDefault()) { // Attempt to get permission from user - var _this = this; + var self = this; global.Notification.requestPermission().then(function(result) { if (result === 'denied') { dis.dispatch({ action: "notifier_enabled", value: false }); - _this.setToolbarHidden(true); + self.setToolbarHidden(true); return; } if (result === 'default') { @@ -223,8 +223,9 @@ var Notifier = { value: this.isEnabled() }); - if (persistent === true) + if (persistent) { this.setToolbarPersistantHidden(); + } }, setToolbarPersistantHidden: function() {