decord/source/utils/web/WindowIdUtils.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

23 lines
707 B
TypeScript

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