mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-17 22:29:52 +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…
Add table
Reference in a new issue