mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-06 13:55:19 +08:00
db config sync
This commit is contained in:
parent
f76169c76d
commit
82d28c860b
1 changed files with 6 additions and 2 deletions
|
@ -1362,8 +1362,8 @@ export function setCustomBackground(value, nosave) {
|
|||
value == ""
|
||||
) {
|
||||
config.customBackground = value;
|
||||
CommandlineLists.defaultCommands.list.filter( (command) =>
|
||||
command.id == "changeCustomBackground"
|
||||
CommandlineLists.defaultCommands.list.filter(
|
||||
(command) => command.id == "changeCustomBackground"
|
||||
)[0].defaultValue = value;
|
||||
ThemeController.applyCustomBackground();
|
||||
if (!nosave) saveToCookie();
|
||||
|
@ -1671,6 +1671,10 @@ export function loadFromCookie() {
|
|||
loadDone();
|
||||
}
|
||||
|
||||
export function setConfig(newConfig) {
|
||||
config = newConfig;
|
||||
}
|
||||
|
||||
export let loadPromise = new Promise((v) => {
|
||||
loadDone = v;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue