badge number

This commit is contained in:
10001shh
2019-01-10 17:18:58 -06:00
parent 2e1c2e9e32
commit c2f37f784e
3 changed files with 13 additions and 3 deletions

View File

@@ -261,6 +261,7 @@ $("#importOrig").change(function (e) {
chrome.storage.sync.set({
savedCourses: impCourses
});
chrome.browserAction.setBadgeText({ text: "" + impCourses.length });
chrome.tabs.query({}, function (tabs) {
for (var i = 0; i < tabs.length; i++) {
chrome.tabs.sendMessage(tabs[i].id, {
@@ -369,6 +370,7 @@ function clear() {
});
}
});
chrome.browserAction.setBadgeText({ text: "" });
$("#courseList").empty()
console.log("cleared");
showEmpty();