mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-12-23 16:18:48 -05:00
Fix main page on firefox
This commit is contained in:
parent
7d69314923
commit
2f6b013a1e
@ -46,7 +46,7 @@ exports.show = function (opts) {
|
||||
};
|
||||
|
||||
exports.shouldAskPermission = function () {
|
||||
return window.webkitNotifications && (window.webkitNotifications.checkPermission() !== 0) && (window.webkitNotifications.checkPermission() !== 2);
|
||||
return (window.webkitNotifications && (window.webkitNotifications.checkPermission() !== 0) && (window.webkitNotifications.checkPermission() !== 2)) || false;
|
||||
};
|
||||
|
||||
exports.askPermission = function (cb) {
|
||||
|
@ -27,10 +27,5 @@ module.exports = BasePage.extend({
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
render: function () {
|
||||
this.renderAndBind();
|
||||
|
||||
return this;
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user