decord/source/utils/web/WindowIdUtils.tsx

22 lines
645 B
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 5134
2026-07-27 11:26:19 +00:00
// Function ID: 44523
2026-07-20 16:05:17 +00:00
// Name: getWindowId
2026-07-23 10:11:24 +00:00
// Dependencies: [22, 2]
2026-07-20 16:05:17 +00:00
// Exports: getMainWindowId, setupWindowId
2026-07-25 08:10:48 +00:00
// Module 5134 (getWindowId)
2026-07-23 10:11:24 +00:00
function getWindowId(defaultView) {
return defaultView.__DISCORD_WINDOW_ID;
2026-07-20 16:05:17 +00:00
}
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
export { getWindowId };
export const setupWindowId = function setupWindowId(arg0) {
2026-07-23 10:11:24 +00:00
const uniqueIdResult = require(22) /* apply */.uniqueId("window-");
2026-07-20 16:05:17 +00:00
arg0.__DISCORD_WINDOW_ID = uniqueIdResult;
return uniqueIdResult;
};
export const getMainWindowId = function getMainWindowId() {
return getWindowId(window);
};