Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNavFlight/inav-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcTn <ctndesigner@gmail.com>2014-08-14 18:23:08 +0400
committercTn <ctndesigner@gmail.com>2014-08-14 18:23:08 +0400
commitd3d933a704efef0a78395f8a2de70b4fee6e1293 (patch)
treea24ba4bf5a04d07425a0985306942f9ca8655e4c /eventPage.js
parent6138c06fa4ddbb52f2ecf4bd8c8e96f00f0622d0 (diff)
experimenting with some undefined comparators in strict mode
Diffstat (limited to 'eventPage.js')
-rw-r--r--eventPage.js4
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,