fixing all broken statements that got broken in recent undefined runs

10.3.x-maintenance
cTn 2014-08-14 17:03:47 +02:00 committed by Dominic Clifton
parent b337359389
commit c87025b3bf
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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);
} }
}); });