decord/source/utils/web/WindowIdUtils.tsx
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

23 lines
724 B
TypeScript

// Module ID: 5605
// Function ID: 5606
// Name: WindowIdUtils
// Dependencies: [12, 2]
// Exports: getMainWindowId, getWindowId, setupWindowId
// Module 5605 (WindowIdUtils)
import _mod12 from "module_12" /* 12 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("utils/web/WindowIdUtils.tsx");
export const getWindowId = function getWindowId(defaultView) {
return defaultView.__DISCORD_WINDOW_ID;
};
export const setupWindowId = function setupWindowId(arg0) {
const uniqueIdResult = _mod12.uniqueId("window-");
arg0.__DISCORD_WINDOW_ID = uniqueIdResult;
return uniqueIdResult;
};
export const getMainWindowId = function getMainWindowId() {
return window.__DISCORD_WINDOW_ID;
};