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

require('@electron/remote') 获取不到里面的属性值 #192

Open
gaoruiting opened this issue May 28, 2024 · 1 comment
Open

require('@electron/remote') 获取不到里面的属性值 #192

gaoruiting opened this issue May 28, 2024 · 1 comment

Comments

@gaoruiting
Copy link

e2ecc237-0500-4226-a2db-138bb1c35cfd

electron版本 22.3.18
@electron/remote版本 2.1.2

以下代码均已执行
require('@electron/remote/main').initialize();
require("@electron/remote/main").enable(window.webContents)

@gaoruiting
Copy link
Author

在preload中引用后、获取的值有问题

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

1 participant