Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] @openim/electron-client-sdk/lib/preload needs to be compatible with the scenario where the main project's contextIsolation is false. #104

Closed
Jiachang-Cai opened this issue Mar 4, 2025 · 1 comment

Comments

@Jiachang-Cai
Copy link

OpenIM Server Version

3.8.3

Operating System and CPU Architecture

Windows (AMD)

Deployment Method

Source Code Deployment

Bug Description and Steps to Reproduce

主项目窗口contextIsolation: false
导入@openim/electron-client-sdk/lib/preload 会报错
希望判断下如果开启没开启直接赋值对象到window

Screenshots Link

No response

@Bloomingg
Copy link
Member

It is recommended to enable contextIsolation.

@Bloomingg Bloomingg changed the title [BUG] @openim/electron-client-sdk/lib/preload 需要兼容主项目contextIsolation为false的场景 [BUG] @openim/electron-client-sdk/lib/preload needs to be compatible with the scenario where the main project's contextIsolation is false. Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants