globalThis.browser.js 245 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 module.exports = (function () { if (typeof self !== 'undefined') { return self; } else if (typeof window !== 'undefined') { return window; } else { return Function('return this')(); // eslint-disable-line no-new-func } })();