decord/source/utils/web/WindowIdUtils.tsx

21 lines
668 B
TypeScript
Raw Normal View History

2026-08-04 08:36:32 +00:00
// Module ID: 5285
// Function ID: 5286
2026-07-20 16:05:17 +00:00
// Name: getWindowId
2026-07-29 08:29:29 +00:00
// Dependencies: [12, 2]
// Exports: getMainWindowId, getWindowId, setupWindowId
2026-07-20 16:05:17 +00:00
2026-08-04 08:36:32 +00:00
// Module 5285 (getWindowId)
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("utils/web/WindowIdUtils.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export const getWindowId = function getWindowId(defaultView) {
return defaultView.__DISCORD_WINDOW_ID;
};
2026-07-20 16:05:17 +00:00
export const setupWindowId = function setupWindowId(arg0) {
2026-07-29 08:29:29 +00:00
const uniqueIdResult = require(12) /* apply */.uniqueId("window-");
2026-07-20 16:05:17 +00:00
arg0.__DISCORD_WINDOW_ID = uniqueIdResult;
return uniqueIdResult;
};
export const getMainWindowId = function getMainWindowId() {
2026-07-29 08:29:29 +00:00
return window.__DISCORD_WINDOW_ID;
2026-07-20 16:05:17 +00:00
};