Skip to content

Commit

Permalink
Update version to 1.0.3
Browse files Browse the repository at this point in the history
Change onUpdateAvailable handler to fire a GA event.
Fire "update-available" with the new version number.
Don't reload the background page when there's an update, so that we won't open the options page until the browser is restarted.
  • Loading branch information
fwextensions committed May 27, 2019
1 parent ecd0fa9 commit 0ef327e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
15 changes: 5 additions & 10 deletions src/js/background/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,17 +286,12 @@ require([


chrome.runtime.onUpdateAvailable.addListener(function(details) {
function restartExtension()
{
if (!popupIsOpen) {
DEBUG && console.log("=== reloading");
chrome.runtime.reload();
} else {
setTimeout(restartExtension, RestartDelay);
}
try {
backgroundTracker.event("extension", "update-available",
details && details.version);
} catch (e) {
console.log(e);
}

restartExtension();
});


Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "QuicKey DEV",
"short_name": "QuicKey",
"version": "1.0.2",
"version": "1.0.3",
"description": "Add keyboard shortcuts to switch tabs with a Quicksilver-style search or a most recently used menu",
"author": "John Dunning",
"content_security_policy": "script-src 'self' 'unsafe-eval' https://www.google-analytics.com; object-src 'self'",
Expand Down

0 comments on commit 0ef327e

Please sign in to comment.