@fluentui/react-northstar
Version:
A themable React component library.
10 lines (8 loc) • 340 B
JavaScript
/* eslint-disable no-undef */
var hasDocument = typeof document === 'object' && document !== null;
var hasWindow = typeof window === 'object' && window !== null && window.self === window;
/* eslint-enable no-undef */
export var isBrowser = function isBrowser() {
return hasDocument && hasWindow;
};
//# sourceMappingURL=isBrowser.js.map