[bug] fix custom theme not resetting after saving

This commit is contained in:
zombieFox 2020-01-03 23:25:17 -07:00
parent 7c712c2292
commit c82ebd968d
5 changed files with 5 additions and 5 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "nighttab", "name": "nighttab",
"version": "4.8.2", "version": "4.8.3",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "nighttab", "name": "nighttab",
"version": "4.8.2", "version": "4.8.3",
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.", "description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

@ -860,7 +860,7 @@ var theme = (function() {
return JSON.parse(JSON.stringify(state.get.current().theme.custom[index])); return JSON.parse(JSON.stringify(state.get.current().theme.custom[index]));
}, },
add: function() { add: function() {
state.get.current().theme.custom.push(stagedThemeCustom.theme); state.get.current().theme.custom.push(JSON.parse(JSON.stringify(stagedThemeCustom.theme)));
}, },
remove: function(copyStagedThemeCustom) { remove: function(copyStagedThemeCustom) {
state.get.current().theme.custom.splice(stagedThemeCustom.position.index, 1); state.get.current().theme.custom.splice(stagedThemeCustom.position.index, 1);

View File

@ -1,6 +1,6 @@
var version = (function() { var version = (function() {
var current = "4.8.2"; var current = "4.8.3";
var name = "Naughty Goose"; var name = "Naughty Goose";

View File

@ -2,7 +2,7 @@
"name": "nightTab", "name": "nightTab",
"short_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.", "description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
"version": "4.8.2", "version": "4.8.3",
"manifest_version": 2, "manifest_version": 2,
"chrome_url_overrides": { "chrome_url_overrides": {
"newtab": "index.html" "newtab": "index.html"