GoScrobble/web/node_modules/react-cookie/es6/utils.js

6 lines
197 B
JavaScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
export function isInBrowser() {
return (typeof window !== 'undefined' &&
typeof window.document !== 'undefined' &&
typeof window.document.createElement !== 'undefined');
}