From 1da37af586250ba7d44d66277c7f9442c22a5467 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 24 Jan 2023 15:16:50 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E9=9D=A2=E5=8C=85=E5=B1=91=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E6=97=A0=E5=8F=8D=E5=BA=94=EF=BC=8C=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=81=9A=E7=84=A6=20https://github.com/siyuan-note/siyuan/issu?= =?UTF-8?q?es/7138?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/menus/protyle.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts index 7563bf7f0..c3edded50 100644 --- a/app/src/menus/protyle.ts +++ b/app/src/menus/protyle.ts @@ -1,12 +1,6 @@ import {hasClosestBlock, hasClosestByMatchTag} from "../protyle/util/hasClosest"; import {MenuItem} from "./Menu"; -import { - focusBlock, - focusByRange, - focusByWbr, - getEditorRange, - selectAll, -} from "../protyle/util/selection"; +import {focusBlock, focusByRange, focusByWbr, getEditorRange, selectAll,} from "../protyle/util/selection"; import { deleteColumn, deleteRow, @@ -456,7 +450,7 @@ export const zoomOut = (protyle: IProtyle, id: string, focusId?: string, isPushB return; } } - if (window.siyuan.mobile.editor) { + if (window.siyuan.mobile?.editor) { window.siyuan.storage[Constants.LOCAL_DOCINFO] = { id, action: id === protyle.block.rootID ? [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT] : [Constants.CB_GET_ALL]