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") { } else if (details.reason == "update") {
console.log("updated"); 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');
});
}
});
} }
}); });

View File

@@ -21,8 +21,7 @@
"css": ["css/styles.css"], "css": ["css/styles.css"],
"js": ["js/moment.min.js", "js/sql-memory-growth.js", "js/highcharts.js", "js/jquery-3.3.1.min.js", "js/import.js"], "js": ["js/moment.min.js", "js/sql-memory-growth.js", "js/highcharts.js", "js/jquery-3.3.1.min.js", "js/import.js"],
"matches": ["https://utdirect.utexas.edu/registrar/waitlist/wl_see_my_waitlists.WBX", "https://utdirect.utexas.edu/registration/classlist.WBX*"] "matches": ["https://utdirect.utexas.edu/registrar/waitlist/wl_see_my_waitlists.WBX", "https://utdirect.utexas.edu/registration/classlist.WBX*"]
} }],
],
"web_accessible_resources": [ "web_accessible_resources": [
"grades.db", "images/disticon.png" "grades.db", "images/disticon.png"
], ],