Some style fixes
Signed-off-by: Minhaz A V <minhazav@gmail.com>
This commit is contained in:
parent
98343a065c
commit
1875377684
1 changed files with 4 additions and 3 deletions
|
@ -156,14 +156,14 @@ var Notifier = {
|
||||||
// Case when we do not have the permission as 'granted'
|
// Case when we do not have the permission as 'granted'
|
||||||
if (this.isPermissionDefault()) {
|
if (this.isPermissionDefault()) {
|
||||||
// Attempt to get permission from user
|
// Attempt to get permission from user
|
||||||
var _this = this;
|
var self = this;
|
||||||
global.Notification.requestPermission().then(function(result) {
|
global.Notification.requestPermission().then(function(result) {
|
||||||
if (result === 'denied') {
|
if (result === 'denied') {
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
action: "notifier_enabled",
|
action: "notifier_enabled",
|
||||||
value: false
|
value: false
|
||||||
});
|
});
|
||||||
_this.setToolbarHidden(true);
|
self.setToolbarHidden(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (result === 'default') {
|
if (result === 'default') {
|
||||||
|
@ -223,8 +223,9 @@ var Notifier = {
|
||||||
value: this.isEnabled()
|
value: this.isEnabled()
|
||||||
});
|
});
|
||||||
|
|
||||||
if (persistent === true)
|
if (persistent) {
|
||||||
this.setToolbarPersistantHidden();
|
this.setToolbarPersistantHidden();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
setToolbarPersistantHidden: function() {
|
setToolbarPersistantHidden: function() {
|
||||||
|
|
Loading…
Reference in a new issue