From a90b2bb283dbc870c6e6554e5e3aba19abcb9fc7 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 9 Nov 2024 16:35:52 +0800 Subject: [PATCH] :art: Apps in Chinese mainland app stores no longer provide AI access settings https://github.com/siyuan-note/siyuan/issues/13051 --- app/src/protyle/util/compatibility.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = () => {