mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 15:04:07 +01:00
🚨
This commit is contained in:
parent
887443c321
commit
39f9aaca82
11 changed files with 45 additions and 46 deletions
|
|
@ -360,11 +360,11 @@ export const repos = {
|
|||
});
|
||||
const syncModeElement = repos.element.querySelector("#syncMode") as HTMLSelectElement;
|
||||
syncModeElement.addEventListener("change", () => {
|
||||
fetchPost("/api/sync/setSyncMode", {mode: parseInt(syncModeElement.value, 10)}, (response) => {
|
||||
fetchPost("/api/sync/setSyncMode", {mode: parseInt(syncModeElement.value, 10)}, () => {
|
||||
if (syncModeElement.value === "1") {
|
||||
syncPerceptionElement.parentElement.classList.remove("fn__none")
|
||||
syncPerceptionElement.parentElement.classList.remove("fn__none");
|
||||
} else {
|
||||
syncPerceptionElement.parentElement.classList.add("fn__none")
|
||||
syncPerceptionElement.parentElement.classList.add("fn__none");
|
||||
}
|
||||
window.siyuan.config.sync.mode = parseInt(syncModeElement.value, 10);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue