Skip to content

Commit

Permalink
Merge pull request xcanwin#12 from hhelibeb/patch-1
Browse files Browse the repository at this point in the history
主题修改没有持久化的问题
  • Loading branch information
xcanwin authored Apr 16, 2023
2 parents 141f9da + c0f5563 commit 5433ef9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion KeepChatGPT.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,14 @@
}
qs("main").kcg = ndivkcg;
symbol_prt.insertBefore(qs("main").kcg, symbol_prt.childNodes[0]);

if (gv("k_theme", "light") == "light") {
qs('#kcg').style = qs('#kcg').styleOrigin;
} else {
qs('#kcg').styleOrigin = qs('#kcg').style;
qs('#kcg').style.background = "#2C3E50";
qs('#kcg').style.animation = "none";
qs('#kcg').style.color = "#ffffff";
};
addStyle();
};

Expand Down

0 comments on commit 5433ef9

Please sign in to comment.