This commit is contained in:
Vanessa 2023-02-08 21:43:16 +08:00
parent b6406e4263
commit 533f7d42ef
2 changed files with 4 additions and 4 deletions

View File

@ -370,7 +370,7 @@ ${unicode2Emoji(emoji.unicode, true)}</button>`;
if (!nodeElement) { if (!nodeElement) {
return; return;
} }
this.enableExtend = false this.enableExtend = false;
let id = ""; let id = "";
if (nodeElement) { if (nodeElement) {
id = nodeElement.getAttribute("data-node-id"); id = nodeElement.getAttribute("data-node-id");

View File

@ -172,10 +172,10 @@ export const syncGuide = (element?: Element) => {
manualDialog.destroy(); manualDialog.destroy();
}); });
btnsElement[1].addEventListener("click", () => { btnsElement[1].addEventListener("click", () => {
const uploadElement = manualDialog.element.querySelector("input[name=upload]:checked") as HTMLInputElement const uploadElement = manualDialog.element.querySelector("input[name=upload]:checked") as HTMLInputElement;
if (!uploadElement) { if (!uploadElement) {
showMessage(window.siyuan.languages.plsChoose) showMessage(window.siyuan.languages.plsChoose);
return return;
} }
fetchPost("/api/sync/performSync", {upload: uploadElement.value === "true"}); fetchPost("/api/sync/performSync", {upload: uploadElement.value === "true"});
manualDialog.destroy(); manualDialog.destroy();