mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-12 06:33:22 +08:00
fixed a bug where funbox persists
This commit is contained in:
parent
01a09a4a48
commit
c384120938
1 changed files with 2 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue