UNPKG

@turnkey/core

Version:

A core JavaScript web and React Native package for interfacing with Turnkey's infrastructure.

29 lines (27 loc) 693 B
const loadWindow = () => { if (typeof window !== "undefined") { return window; } else { return { localStorage: { getItem: (_key) => { return null; }, setItem: (_key, _value) => { }, removeItem: (_key) => { }, clear: () => { }, key: (_index) => { return null; }, length: 0, }, location: { hostname: "", }, }; } }; var WindowWrapper = loadWindow(); export { WindowWrapper as default }; //# sourceMappingURL=window.mjs.map