decord/source/modules/instant_invite/getInviteURL.tsx

30 lines
674 B
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 7362
// Function ID: 7363
2026-07-20 16:05:17 +00:00
// Name: getInviteURL
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 7362 (getInviteURL)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
const result = set.fileFinishedImporting("modules/instant_invite/getInviteURL.tsx");
2026-07-20 16:05:17 +00:00
export default function getInviteURL() {
let str = arg0;
if (arg0 === undefined) {
str = "";
}
2026-07-29 08:29:29 +00:00
let flag = arg1;
if (arg1 === undefined) {
2026-07-20 16:05:17 +00:00
flag = true;
}
let str2 = "";
const combined = "/" + str;
if (flag) {
const _location = location;
const _HermesInternal = HermesInternal;
str2 = "" + location.protocol + "//";
}
return "" + str2 + window.GLOBAL_ENV.INVITE_HOST + combined;
};