Skip to content

Commit c82ebd9

Browse files
committed
[bug] fix custom theme not resetting after saving
1 parent 7c712c2 commit c82ebd9

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

‎package-lock.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nighttab",
3-
"version": "4.8.2",
3+
"version": "4.8.3",
44
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
55
"main": "index.js",
66
"scripts":{

‎src/js/theme.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ var theme = (function(){
860860
returnJSON.parse(JSON.stringify(state.get.current().theme.custom[index]));
861861
},
862862
add: function(){
863-
state.get.current().theme.custom.push(stagedThemeCustom.theme);
863+
state.get.current().theme.custom.push(JSON.parse(JSON.stringify(stagedThemeCustom.theme)));
864864
},
865865
remove: function(copyStagedThemeCustom){
866866
state.get.current().theme.custom.splice(stagedThemeCustom.position.index,1);

‎src/js/version.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
varversion=(function(){
22

3-
varcurrent="4.8.2";
3+
varcurrent="4.8.3";
44

55
varname="Naughty Goose";
66

‎src/manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nightTab",
33
"short_name": "nightTab",
44
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
5-
"version": "4.8.2",
5+
"version": "4.8.3",
66
"manifest_version": 2,
77
"chrome_url_overrides":{
88
"newtab": "index.html"

0 commit comments

Comments
(0)