Metzploreur/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js

14 lines
354 B
JavaScript
Raw Normal View History

2023-11-01 16:33:25 +00:00
Object.defineProperty(exports, "__esModule", { value: true });
exports.locateWindow = void 0;
const fallbackWindow = {};
function locateWindow() {
if (typeof window !== "undefined") {
return window;
}
else if (typeof self !== "undefined") {
return self;
}
return fallbackWindow;
}
exports.locateWindow = locateWindow;