[refactor] read version from manifest

This commit is contained in:
zombieFox 2019-06-16 13:15:14 +01:00
parent 2d3dcd5172
commit 1c8a96da41
2 changed files with 2 additions and 5 deletions

View File

@ -1,8 +1,5 @@
var version = (function() {
// version is normally bumped when the state needs changing or any new functionality is added
var current = "3.12.0";
var compare = function(a, b) {
var pa = a.split(".");
var pb = b.split(".");
@ -26,7 +23,7 @@ var version = (function() {
};
var get = function() {
return current;
return chrome.runtime.getManifest().version;
};
// exposed methods

View File

@ -2,7 +2,7 @@
"name": "nightTab",
"short_name": "nightTab",
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab -- a custom start page.",
"version": "3.12.0",
"version": "3.13.0",
"manifest_version": 2,
"chrome_url_overrides": {
"newtab": "index.html"