diff options
author | cTn <ctndesigner@gmail.com> | 2014-08-14 18:23:08 +0400 |
---|---|---|
committer | cTn <ctndesigner@gmail.com> | 2014-08-14 18:23:08 +0400 |
commit | d3d933a704efef0a78395f8a2de70b4fee6e1293 (patch) | |
tree | a24ba4bf5a04d07425a0985306942f9ca8655e4c /eventPage.js | |
parent | 6138c06fa4ddbb52f2ecf4bd8c8e96f00f0622d0 (diff) |
experimenting with some undefined comparators in strict mode
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, |