decord/alpha/source/modules/frames/utils/getFrameLaunchContextQueryParams.tsx

32 lines
795 B
TypeScript
Raw Normal View History

2026-10-08 09:57:35 +00:00
// Module ID: 17460
// Function ID: 17461
2026-09-03 10:05:34 +00:00
// Name: getFrameLaunchContextQueryParams
// Dependencies: [2]
// Exports: default
2026-10-08 09:57:35 +00:00
// Module 17460 (getFrameLaunchContextQueryParams)
import size from "module_2" /* 2 */;
2026-09-03 10:05:34 +00:00
const result = size.fileFinishedImporting("modules/frames/utils/getFrameLaunchContextQueryParams.tsx");
2026-09-03 10:05:34 +00:00
2026-10-08 09:57:35 +00:00
export default function getFrameLaunchContextQueryParams(launch) {
launch = launch.launch;
let customId;
if (launch != null) {
customId = launch.customId;
}
2026-09-03 10:05:34 +00:00
const obj = {};
2026-10-08 09:57:35 +00:00
if (null != customId) {
obj.custom_id = launch.launch.customId;
}
const launch2 = launch.launch;
let referrerId;
if (launch2 != null) {
referrerId = launch2.referrerId;
2026-09-03 10:05:34 +00:00
}
2026-10-08 09:57:35 +00:00
if (null != referrerId) {
obj.referrer_id = launch.launch.referrerId;
2026-09-03 10:05:34 +00:00
}
return obj;
};