diff --git a/stylebot/background/version.js b/stylebot/background/version.js index 015833d1..044a1d56 100644 --- a/stylebot/background/version.js +++ b/stylebot/background/version.js @@ -2,24 +2,12 @@ * Version updates * This is the only place you need to update the version string * besides manifest.json. + * + * Only update the version string here if you want to show a + * notification. */ var VERSION = '2'; -/** - * Updates the version of extension. - * Updates the data model if required. - */ -function updateVersion(callback) { - chrome.storage.local.get(['version'], function(storage) { - if (storage['version'] != VERSION) { - chrome.storage.local.set({'version': VERSION}); - showUpdateNotification(); - } - - callback(); - }); -} - /** * Show notification for version update */ @@ -34,3 +22,17 @@ function showUpdateNotification() { } } +/** + * Updates the version of extension stored in storage + * and data model if required. + */ +function updateVersion(callback) { + chrome.storage.local.get(['version'], function(storage) { + if (storage['version'] !== VERSION) { + chrome.storage.local.set({'version': VERSION}); + showUpdateNotification(); + } + + callback(); + }); +} \ No newline at end of file diff --git a/stylebot/manifest.json b/stylebot/manifest.json index 8be3abdf..babef6c0 100644 --- a/stylebot/manifest.json +++ b/stylebot/manifest.json @@ -1,8 +1,8 @@ { "manifest_version": 2, "name" : "Stylebot", - "version" : "2.1", - "description" : "Change the appearance of websites instantly. Preview and install styles created by users for your favorite websites", + "version" : "2.2", + "description" : "Change the appearance of websites instantly. Preview and install styles created by other users on stylebot.me", "background" : { "scripts": [