Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
23 lines
724 B
TypeScript
23 lines
724 B
TypeScript
// Module ID: 5867
|
|
// Function ID: 5868
|
|
// Name: WindowIdUtils
|
|
// Dependencies: [12, 2]
|
|
// Exports: getMainWindowId, getWindowId, setupWindowId
|
|
|
|
// Module 5867 (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;
|
|
};
|