Metzploreur/node_modules/@aws-sdk/util-locate-window/dist-es/index.js
clement callaert 244d45ceb8 Version 2
2023-11-01 17:33:25 +01:00

10 lines
230 B
JavaScript

const fallbackWindow = {};
export function locateWindow() {
if (typeof window !== "undefined") {
return window;
}
else if (typeof self !== "undefined") {
return self;
}
return fallbackWindow;
}