friggin hell

This commit is contained in:
Zack Rauen 2017-10-29 18:02:13 -04:00
parent 6d862c866e
commit 3ddae1ede3
1 changed files with 2 additions and 2 deletions

View File

@ -4060,9 +4060,9 @@ class V2C_ThemeCard extends BDV2.reactComponent {
});
themeCookie[self.props.theme.name] = !self.state.checked;
if (!self.state.checked) {
$("head").append(`<style id="${self.props.theme.name}">${unescape(self.props.theme.css)}</style>`);
$("head").append(`<style id="${escape(self.props.theme.name)}">${unescape(self.props.theme.css)}</style>`);
} else {
$(`#${self.props.theme.name}`).remove();
$(`#${escape(self.props.theme.name)}`).remove();
}
$.cookie("bd-themes", JSON.stringify(themeCookie), {
expires: 365,