@turnkey/core
Version:
A core JavaScript web and React Native package for interfacing with Turnkey's infrastructure.
31 lines (28 loc) • 702 B
JavaScript
;
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();
module.exports = WindowWrapper;
//# sourceMappingURL=window.js.map