Skip to content

Commit 2b0e1cf

Browse files
committed
updated version to 2.2
1 parent 13257f4 commit 2b0e1cf

File tree

2 files changed

+19
-17
lines changed

2 files changed

+19
-17
lines changed

stylebot/background/version.js

+17-15
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,12 @@
22
* Version updates
33
* This is the only place you need to update the version string
44
* besides manifest.json.
5+
*
6+
* Only update the version string here if you want to show a
7+
* notification.
58
*/
69
var VERSION = '2';
710

8-
/**
9-
* Updates the version of extension.
10-
* Updates the data model if required.
11-
*/
12-
function updateVersion(callback) {
13-
chrome.storage.local.get(['version'], function(storage) {
14-
if (storage['version'] != VERSION) {
15-
chrome.storage.local.set({'version': VERSION});
16-
showUpdateNotification();
17-
}
18-
19-
callback();
20-
});
21-
}
22-
2311
/**
2412
* Show notification for version update
2513
*/
@@ -34,3 +22,17 @@ function showUpdateNotification() {
3422
}
3523
}
3624

25+
/**
26+
* Updates the version of extension stored in storage
27+
* and data model if required.
28+
*/
29+
function updateVersion(callback) {
30+
chrome.storage.local.get(['version'], function(storage) {
31+
if (storage['version'] !== VERSION) {
32+
chrome.storage.local.set({'version': VERSION});
33+
showUpdateNotification();
34+
}
35+
36+
callback();
37+
});
38+
}

stylebot/manifest.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"manifest_version": 2,
33
"name" : "Stylebot",
4-
"version" : "2.1",
5-
"description" : "Change the appearance of websites instantly. Preview and install styles created by users for your favorite websites",
4+
"version" : "2.2",
5+
"description" : "Change the appearance of websites instantly. Preview and install styles created by other users on stylebot.me",
66

77
"background" : {
88
"scripts": [

0 commit comments

Comments
 (0)