decord/beta/source/utils/web/WindowIdUtils.tsx
github-actions 9b6fea255e chore: update source for beta 346.12
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-18 19:45:33 +00:00

23 lines
724 B
TypeScript

// Module ID: 5636
// Function ID: 5637
// Name: WindowIdUtils
// Dependencies: [12, 2]
// Exports: getMainWindowId, getWindowId, setupWindowId
// Module 5636 (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;
};