mirror of
https://github.com/zombieFox/nightTab.git
synced 2025-01-25 07:19:13 +01:00
[refactor] improve data module load function
This commit is contained in:
parent
8118e5b0a3
commit
bf04c20750
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nightTab",
|
||||
"version": "5.4.2",
|
||||
"version": "5.5.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nightTab",
|
||||
"version": "5.4.2",
|
||||
"version": "5.5.0",
|
||||
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
@ -235,7 +235,11 @@ var data = (function() {
|
||||
};
|
||||
|
||||
var load = function() {
|
||||
return JSON.parse(mod.get(_saveName));
|
||||
if (mod.get(_saveName) != null && mod.get(_saveName) != undefined) {
|
||||
return JSON.parse(mod.get(_saveName));
|
||||
} else {
|
||||
return false;
|
||||
};
|
||||
};
|
||||
|
||||
var wipe = function() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
var version = (function() {
|
||||
|
||||
var current = "5.4.2";
|
||||
var current = "5.5.0";
|
||||
|
||||
var name = "Zonked Tarsier";
|
||||
|
||||
|
@ -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.",
|
||||
"version": "5.4.2",
|
||||
"version": "5.5.0",
|
||||
"manifest_version": 2,
|
||||
"chrome_url_overrides": {
|
||||
"newtab": "index.html"
|
||||
|
Loading…
Reference in New Issue
Block a user