[feature] adding version count

This commit is contained in:
zombieFox 2018-12-27 11:41:40 -07:00
parent 6e68d03bea
commit 9ea98971e5
3 changed files with 17 additions and 2 deletions

View File

@ -16,7 +16,7 @@ var data = (function() {
var save = function() {
set(saveName, JSON.stringify(state.get()));
console.log(saveName + " data saved");
console.log("data saved");
};
var restore = function() {
@ -25,7 +25,7 @@ var data = (function() {
bookmarks.restore(data.bookmarks);
theme.restore(data.theme);
control.restore(data.control);
console.log(saveName + " data restored");
console.log("data restored");
};
};

View File

@ -1,3 +1,4 @@
console.log("nightTab v", version.get(), "loaded");
// look for and restore data
data.init();
// render theme

14
js/version.js Normal file
View File

@ -0,0 +1,14 @@
var version = (function() {
var current = 1.0;
var get = function() {
return current;
};
// exposed methods
return {
get: get
};
})();