fixing all broken statements that got broken in recent undefined runs
parent
b337359389
commit
c87025b3bf
|
@ -81,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 (!result.update_notify || result.update_notify) {
|
if (result.update_notify === 'undefined' || result.update_notify) {
|
||||||
var manifest = chrome.runtime.getManifest();
|
var manifest = chrome.runtime.getManifest();
|
||||||
var options = {
|
var options = {
|
||||||
priority: 0,
|
priority: 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 || result.update_notify) {
|
if (result.update_notify === 'undefined' || result.update_notify) {
|
||||||
$('div.notifications input').prop('checked', true);
|
$('div.notifications input').prop('checked', true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue