2026-09-24 10:59:02 +00:00
|
|
|
// Module ID: 5860
|
|
|
|
|
// Function ID: 5861
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: WindowIdUtils
|
2026-07-29 08:29:29 +00:00
|
|
|
// Dependencies: [12, 2]
|
|
|
|
|
// Exports: getMainWindowId, getWindowId, setupWindowId
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-24 10:59:02 +00:00
|
|
|
// Module 5860 (WindowIdUtils)
|
2026-09-10 05:38:07 +00:00
|
|
|
import _mod12 from "module_12" /* 12 */;
|
|
|
|
|
import size from "module_2" /* 2 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.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-09-10 05:38:07 +00:00
|
|
|
const uniqueIdResult = _mod12.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
|
|
|
};
|