Skip to content

Commit 1c8a96d

Browse files
committed
[refactor] read version from manifest
1 parent 2d3dcd5 commit 1c8a96d

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

‎js/version.js‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
varversion=(function(){
22

3-
// version is normally bumped when the state needs changing or any new functionality is added
4-
varcurrent="3.12.0";
5-
63
varcompare=function(a,b){
74
varpa=a.split(".");
85
varpb=b.split(".");
@@ -26,7 +23,7 @@ var version = (function(){
2623
};
2724

2825
varget=function(){
29-
returncurrent;
26+
returnchrome.runtime.getManifest().version;
3027
};
3128

3229
// exposed methods

‎manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nightTab",
33
"short_name": "nightTab",
44
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab -- a custom start page.",
5-
"version": "3.12.0",
5+
"version": "3.13.0",
66
"manifest_version": 2,
77
"chrome_url_overrides":{
88
"newtab": "index.html"

0 commit comments

Comments
(0)