File tree 2 files changed +19
-17
lines changed
2 files changed +19
-17
lines changed Original file line number Diff line number Diff line change 2
2
* Version updates
3
3
* This is the only place you need to update the version string
4
4
* besides manifest.json.
5
+ *
6
+ * Only update the version string here if you want to show a
7
+ * notification.
5
8
*/
6
9
var VERSION = '2' ;
7
10
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
-
23
11
/**
24
12
* Show notification for version update
25
13
*/
@@ -34,3 +22,17 @@ function showUpdateNotification() {
34
22
}
35
23
}
36
24
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
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"manifest_version" : 2 ,
3
3
"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 " ,
6
6
7
7
"background" : {
8
8
"scripts" : [
You can’t perform that action at this time.
0 commit comments