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
latest
All
browser() occurs an error in Node.js
browser()
// ReferenceError: window is not defined if (window && window.navigator) { detectBrowser(); }
If browser() runs in Node.js, do not execute detectBrowser().
detectBrowser()
The text was updated successfully, but these errors were encountered:
fix: prevent access to the window object in the node (fix #48)
bd62a2e
8e267a7
heenakwag
Successfully merging a pull request may close this issue.
Version
latest
Development Environment
All
Current Behavior
browser()
occurs an error in Node.jsExpected Behavior
If
browser()
runs in Node.js, do not executedetectBrowser()
.The text was updated successfully, but these errors were encountered: