diff --git a/app/src/protyle/render/searchMarkRender.ts b/app/src/protyle/render/searchMarkRender.ts index 764f11ebe..c17fd76c1 100644 --- a/app/src/protyle/render/searchMarkRender.ts +++ b/app/src/protyle/render/searchMarkRender.ts @@ -2,7 +2,7 @@ import {Constants} from "../../constants"; import {isInEmbedBlock} from "../util/hasClosest"; export const searchMarkRender = (protyle: IProtyle, keys: string[], hlId?: string | number, cb?: () => void) => { - if (!isSupportCSSHL()) { + if (!isSupportCSSHL() || !keys || keys.length === 0) { return; } setTimeout(() => {