Skip to content

Commit df33e6e

Browse files
committed
Avoid reloading and erasing currently cloaked tabs on every update
1 parent 085bff0 commit df33e6e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

js/background.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,4 +415,7 @@ dpContext();
415415
if ((!optionExists("version") || localStorage["version"] != version) && localStorage["showUpdateNotifications"] == 'true') {
416416
// chrome.tabs.create({ url: chrome.extension.getURL('updated.html'), selected: false }); // very minor update
417417
localStorage["version"] = version;
418-
}
418+
}
419+
chrome.runtime.onUpdateAvailable.addListener(function (details) {
420+
// an update is available, but wait until user restarts their browser as to not disrupt their current session and cloaked tabs.
421+
});

0 commit comments

Comments
 (0)