Skip to content

Commit

Permalink
Avoid reloading and erasing currently cloaked tabs on every update
Browse files Browse the repository at this point in the history
  • Loading branch information
andryou committed Jun 6, 2016
1 parent 085bff0 commit df33e6e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,4 +415,7 @@ dpContext();
if ((!optionExists("version") || localStorage["version"] != version) && localStorage["showUpdateNotifications"] == 'true') {
// chrome.tabs.create({ url: chrome.extension.getURL('updated.html'), selected: false }); // very minor update
localStorage["version"] = version;
}
}
chrome.runtime.onUpdateAvailable.addListener(function (details) {
// an update is available, but wait until user restarts their browser as to not disrupt their current session and cloaked tabs.
});

0 comments on commit df33e6e

Please sign in to comment.