diff options
Diffstat (limited to 'eventPage.js')
-rw-r--r-- | eventPage.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eventPage.js b/eventPage.js index 2d4d7b62..5f97f1c3 100644 --- a/eventPage.js +++ b/eventPage.js @@ -10,6 +10,8 @@ I am using arbitrary dimensions which fixes the Windows 7 problem, hopefully it will get resolved in future release so other OSs won't have to use bigger dimensions by default. */ +'use strict'; + function start_app() { chrome.app.window.create('main.html', { id: 'main-window', @@ -79,7 +81,7 @@ chrome.runtime.onInstalled.addListener(function (details) { // only fire up notification sequence when one of the major version numbers changed if (currentVersionArr[0] != previousVersionArr[0] || currentVersionArr[1] != previousVersionArr[1]) { chrome.storage.local.get('update_notify', function (result) { - if (typeof result.update_notify === 'undefined' || result.update_notify) { + if (!result.update_notify || result.update_notify) { var manifest = chrome.runtime.getManifest(); var options = { priority: 0, |