diff --git a/app/electron/main.js b/app/electron/main.js index de6b89bd7..62bdd797a 100644 --- a/app/electron/main.js +++ b/app/electron/main.js @@ -52,7 +52,7 @@ remote.initialize(); app.setPath("userData", app.getPath("userData") + "-Electron"); // `~/.config` 下 Electron 相关文件夹名称改为 `SiYuan-Electron` https://github.com/siyuan-note/siyuan/issues/3349 fs.rmSync(app.getPath("appData") + "/" + app.name, {recursive: true}); // 删除自动创建的应用目录 https://github.com/siyuan-note/siyuan/issues/13150 -if (process.platform === 'win32') { +if (process.platform === "win32") { // Windows 需要设置 AppUserModelId 才能正确显示应用名称 https://github.com/siyuan-note/siyuan/issues/17022 app.setAppUserModelId(app.name); } diff --git a/app/src/mobile/util/mobileAppUtil.ts b/app/src/mobile/util/mobileAppUtil.ts index ed791281d..ed6557920 100644 --- a/app/src/mobile/util/mobileAppUtil.ts +++ b/app/src/mobile/util/mobileAppUtil.ts @@ -17,11 +17,11 @@ export const canInput = (element: Element) => { element.tagName === "TEXTAREA" || (element.tagName === "INPUT" && ["email", "number", "password", "search", "tel", "text", "url", "", null].includes(element.getAttribute("type"))) ) && element.getAttribute("readonly") !== "readonly") { - return element + return element; } const wysisygElement = hasClosestByClassName(element, "protyle-wysiwyg", true); if (wysisygElement && wysisygElement.getAttribute("data-readonly") === "false") { - return hasClosestByAttribute(element, "contenteditable", "true") + return hasClosestByAttribute(element, "contenteditable", "true"); } return false; -} \ No newline at end of file +}; \ No newline at end of file