Fixed theme and plugin state not saving

This commit is contained in:
Alexei Stukov 2017-04-30 14:21:23 +03:00 committed by GitHub
parent 6372743f9f
commit 2d4416466c
1 changed files with 8 additions and 1 deletions

View File

@ -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 {