We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug 在electron中不能正常使用
Expected behavior 希望在electorn中也能正常使用
Information 由于 electron 内置浏览器中调用 Object.prototype.toString.call(window) 返回 '[object global]' 而非 '[object Window]', 因此 @zyf2e/monitor-utils 模块的 isType 函数没有正确判断出来是浏览器环境
Object.prototype.toString.call(window)
'[object global]'
'[object Window]'
@zyf2e/monitor-utils
isType
The text was updated successfully, but these errors were encountered:
提供个思路,electron有global(就是node环境内的global),浏览器内没有global
Sorry, something went wrong.
No branches or pull requests
Describe the bug
在electron中不能正常使用
Expected behavior
希望在electorn中也能正常使用
Information
由于 electron 内置浏览器中调用
Object.prototype.toString.call(window)
返回'[object global]'
而非'[object Window]'
,因此
@zyf2e/monitor-utils
模块的isType
函数没有正确判断出来是浏览器环境The text was updated successfully, but these errors were encountered: