update with new setting

This commit is contained in:
Sriram Hariharan
2019-01-12 16:35:22 -06:00
parent d45c2eecbe
commit 14fca9e216
2 changed files with 17 additions and 9 deletions

View File

@@ -77,6 +77,15 @@ chrome.runtime.onInstalled.addListener(function (details) {
});
} else if (details.reason == "update") {
console.log("updated");
chrome.storage.sync.get('loadAll', function (data) {
if (data.loadAll == undefined) {
chrome.storage.sync.set({
loadAll: true
}, function () {
console.log('initial loadAll: true');
});
}
});
}
});