decord/alpha/source/utils/web/WindowIdUtils.tsx
github-actions 6eea20b8e1 chore: update source for alpha 348.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-24 10:59:02 +00:00

23 lines
724 B
TypeScript

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