Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/utils/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@ export function isLandscape () {
* Check if running in a browser or spoofed browser (bundler).
* We need to check a node api that isn't mocked on either side.
* `require` and `module.exports` are mocked in browser by bundlers.
* process is polyfilled with process.browser true by Next.js with "use client".
*/
export var isBrowserEnvironment = typeof process === 'undefined';
export var isBrowserEnvironment = typeof process === 'undefined' || process.browser === true;

/**
* Check if running in node on the server.
Expand Down