fixed a bug where funbox persists

This commit is contained in:
Jack 2020-08-11 14:57:00 +01:00
parent 01a09a4a48
commit c384120938

View file

@ -145,15 +145,12 @@ function copyResultToClipboard() {
}
function activateFunbox(funbox, mode) {
$("#funBoxTheme").attr("href", ``);
if (funbox === "none") {
$("#funBoxTheme").attr("href", ``);
activeFunBox = "none";
}
if (mode === "style") {
if (funbox == undefined) {
$("#funBoxTheme").attr("href", ``);
activeFunBox = "none";
} else {
if (funbox != undefined) {
$("#funBoxTheme").attr("href", `funbox/${funbox}.css`);
activeFunBox = funbox;
}