This commit is contained in:
Vanessa 2023-12-25 22:11:41 +08:00
parent 0878260361
commit cd0900f0a5

View file

@ -573,7 +573,7 @@ const initSearchEvent = (app: App, element: Element, config: ISearchOption) => {
} else if (target.getAttribute("data-type") === "search-item") {
const id = target.getAttribute("data-node-id");
if (id) {
if (window.siyuan.mobile.editor.protyle) {
if (window.siyuan.mobile.editor?.protyle) {
preventScroll(window.siyuan.mobile.editor.protyle);
}
checkFold(id, (zoomIn) => {