UNPKG

get-it

Version:

Generic HTTP request library for node, browsers and workers

14 lines (11 loc) 344 B
let actualGlobal = {} as typeof globalThis if (typeof globalThis !== 'undefined') { actualGlobal = globalThis } else if (typeof window !== 'undefined') { actualGlobal = window } else if (typeof global !== 'undefined') { actualGlobal = global } else if (typeof self !== 'undefined') { actualGlobal = self } export default actualGlobal