From 2d4416466c53840ce981bcfe0c12d08833666dd2 Mon Sep 17 00:00:00 2001 From: Alexei Stukov Date: Sun, 30 Apr 2017 14:21:23 +0300 Subject: [PATCH] Fixed theme and plugin state not saving --- js/main.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index 8ffce8a..541032a 100644 --- a/js/main.js +++ b/js/main.js @@ -3965,6 +3965,10 @@ class V2C_PluginCard extends BDV2.reactComponent { } else { self.props.plugin.stop(); } + $.cookie("bd-plugins", JSON.stringify(pluginCookie), { + expires: 365, + path: '/' + }); } showSettings() { @@ -4044,6 +4048,10 @@ class V2C_ThemeCard extends BDV2.reactComponent { } else { $(`#${self.props.theme.name}`).remove(); } + $.cookie("bd-themes", JSON.stringify(themeCookie), { + expires: 365, + path: '/' + }); } } @@ -4730,7 +4738,6 @@ class V2_PublicServers { } BDV2.reactDom.render(this.component, root); } - } class V2_SettingsPanel_Sidebar {