mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-16 12:55:13 +03:00
experimenting with some undefined comparators in strict mode
This commit is contained in:
parent
6138c06fa4
commit
d3d933a704
3 changed files with 5 additions and 3 deletions
|
@ -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
|
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 bigger dimensions by default.
|
||||||
*/
|
*/
|
||||||
|
'use strict';
|
||||||
|
|
||||||
function start_app() {
|
function start_app() {
|
||||||
chrome.app.window.create('main.html', {
|
chrome.app.window.create('main.html', {
|
||||||
id: 'main-window',
|
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
|
// only fire up notification sequence when one of the major version numbers changed
|
||||||
if (currentVersionArr[0] != previousVersionArr[0] || currentVersionArr[1] != previousVersionArr[1]) {
|
if (currentVersionArr[0] != previousVersionArr[0] || currentVersionArr[1] != previousVersionArr[1]) {
|
||||||
chrome.storage.local.get('update_notify', function (result) {
|
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 manifest = chrome.runtime.getManifest();
|
||||||
var options = {
|
var options = {
|
||||||
priority: 0,
|
priority: 0,
|
||||||
|
|
|
@ -193,7 +193,7 @@ function read_serial(info) {
|
||||||
|
|
||||||
function sensor_status(sensors_detected) {
|
function sensor_status(sensors_detected) {
|
||||||
// initialize variable (if it wasn't)
|
// initialize variable (if it wasn't)
|
||||||
if (sensor_status.previous_sensors_detected === 'undefined') {
|
if (!sensor_status.previous_sensors_detected) {
|
||||||
sensor_status.previous_sensors_detected = 0;
|
sensor_status.previous_sensors_detected = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
main.js
2
main.js
|
@ -129,7 +129,7 @@ $(document).ready(function () {
|
||||||
|
|
||||||
// if notifications are enabled, or wasn't set, check the notifications checkbox
|
// if notifications are enabled, or wasn't set, check the notifications checkbox
|
||||||
chrome.storage.local.get('update_notify', function (result) {
|
chrome.storage.local.get('update_notify', function (result) {
|
||||||
if (result.update_notify === 'undefined' || result.update_notify) {
|
if (!result.update_notify || result.update_notify) {
|
||||||
$('div.notifications input').prop('checked', true);
|
$('div.notifications input').prop('checked', true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue