Permalink
Browse files

updated version to 2.2

  • Loading branch information...
1 parent 13257f4 commit 2b0e1cf280885b6136c8d48d23fb69a61ad7819f @ankit committed Dec 20, 2013
Showing with 19 additions and 17 deletions.
  1. +17 −15 stylebot/background/version.js
  2. +2 −2 stylebot/manifest.json
@@ -2,25 +2,13 @@
* 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
*/
function showUpdateNotification() {
@@ -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();
+ });
+}
@@ -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": [

0 comments on commit 2b0e1cf

Please sign in to comment.