20 lines
668 B
TypeScript
20 lines
668 B
TypeScript
// Module ID: 5324
|
|
// Function ID: 5325
|
|
// Name: getWindowId
|
|
// Dependencies: [12, 2]
|
|
// Exports: getMainWindowId, getWindowId, setupWindowId
|
|
|
|
// Module 5324 (getWindowId)
|
|
const result = require("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 = require(12) /* apply */.uniqueId("window-");
|
|
arg0.__DISCORD_WINDOW_ID = uniqueIdResult;
|
|
return uniqueIdResult;
|
|
};
|
|
export const getMainWindowId = function getMainWindowId() {
|
|
return window.__DISCORD_WINDOW_ID;
|
|
};
|