diff --git a/app/src/mobile/menu/index.ts b/app/src/mobile/menu/index.ts index f593dffcd..d65636676 100644 --- a/app/src/mobile/menu/index.ts +++ b/app/src/mobile/menu/index.ts @@ -35,6 +35,18 @@ export const initRightMenu = () => { `; } + + let aiHTML = `
`; + const isHuawei = () => { + return 0 < window.siyuan.config.system.osPlatform.toLowerCase().indexOf("huawei") + } + if (isHuawei()) { + // Access to the OpenAI API is no longer supported on Huawei devices https://github.com/siyuan-note/siyuan/issues/8192 + aiHTML = ""; + } + menuElement.innerHTML = `