diff --git a/package-lock.json b/package-lock.json index 3368813a..6b85a102 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "nightTab", - "version": "5.4.2", + "version": "5.5.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 9d8b2499..e657f28e 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/js/data.js b/src/js/data.js index 8cefd0ee..071c9362 100644 --- a/src/js/data.js +++ b/src/js/data.js @@ -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() { diff --git a/src/js/version.js b/src/js/version.js index ac909f96..6d805364 100644 --- a/src/js/version.js +++ b/src/js/version.js @@ -1,6 +1,6 @@ var version = (function() { - var current = "5.4.2"; + var current = "5.5.0"; var name = "Zonked Tarsier"; diff --git a/src/manifest.json b/src/manifest.json index 41e86c6d..49c1a7a5 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -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"