diff --git a/app/src/protyle/util/compatibility.ts b/app/src/protyle/util/compatibility.ts index a4f30a4cdcf..9223a1d2451 100644 --- a/app/src/protyle/util/compatibility.ts +++ b/app/src/protyle/util/compatibility.ts @@ -111,7 +111,7 @@ export const isHuawei = () => { }; export const isDisabledFeature = (feature: string): boolean => { - return window.siyuan.config.system.disabledFeatures.indexOf(feature) > -1; + return window.siyuan.config.system.disabledFeatures?.indexOf(feature) > -1; }; export const isIPhone = () => {