From 2b0e1cf280885b6136c8d48d23fb69a61ad7819f Mon Sep 17 00:00:00 2001 From: Ankit Ahuja Date: Fri, 20 Dec 2013 12:18:09 +0530 Subject: [PATCH] updated version to 2.2 --- stylebot/background/version.js | 32 +++++++++++++++++--------------- stylebot/manifest.json | 4 ++-- 2 files changed, 19 insertions(+), 17 deletions(-) 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": [