Files
Media-Coding-Web/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js
2026-04-04 12:49:09 +08:00

15 lines
276 B
JavaScript

'use strict';
const fallbackWindow = {};
function locateWindow() {
if (typeof window !== "undefined") {
return window;
}
else if (typeof self !== "undefined") {
return self;
}
return fallbackWindow;
}
exports.locateWindow = locateWindow;