diff --git a/package-lock.json b/package-lock.json index 09113144..fccb9ee4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "nightTab", - "version": "5.74.0", + "version": "5.75.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 4e34b833..fc3117f8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nightTab", - "version": "5.74.0", + "version": "5.75.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 2d37c302..7b13fa2a 100644 --- a/src/js/data.js +++ b/src/js/data.js @@ -266,7 +266,7 @@ var data = (function() { var init = function() { mod.nameFix(); - mod.restore(data.load()); + mod.restore(load()); render.feedback.empty(); }; diff --git a/src/js/initial-background.js b/src/js/initial-background.js index 4af25174..478ac582 100644 --- a/src/js/initial-background.js +++ b/src/js/initial-background.js @@ -1,14 +1,14 @@ // inital check for systems which do not have light or dark mode -var data = JSON.parse(localStorage.getItem("nightTab")); +var nightTabData = JSON.parse(localStorage.getItem("nightTab")); if (window.matchMedia("(prefers-color-scheme:light)").matches) { - if (data) { - if (data.state.theme.style == "dark") { + if (nightTabData) { + if (nightTabData.state.theme.style == "dark") { document.querySelector("html").setAttribute("style", "background-color:rgb(0,0,0)"); }; }; } else if (window.matchMedia("(prefers-color-scheme:dark)").matches) { - if (data) { - if (data.state.theme.style == "light") { + if (nightTabData) { + if (nightTabData.state.theme.style == "light") { document.querySelector("html").setAttribute("style", "background-color:rgb(255,255,255)"); }; }; diff --git a/src/js/version.js b/src/js/version.js index 0c8586ad..3eeffadb 100644 --- a/src/js/version.js +++ b/src/js/version.js @@ -1,6 +1,6 @@ var version = (function() { - var current = "5.74.0"; + var current = "5.75.0"; var name = "Jaded Raven"; diff --git a/src/manifest.json b/src/manifest.json index ee6d0346..bbd002d9 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.74.0", + "version": "5.75.0", "manifest_version": 2, "chrome_url_overrides": { "newtab": "index.html"