decord/stable/source/modules/activities/utils/tryLaunchAsFrame.tsx
github-actions 57c2214117 chore: update source for stable 347.12
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
2026-09-29 21:26:22 +00:00

32 lines
1.1 KiB
TypeScript

// Module ID: 9627
// Function ID: 9628
// Name: tryLaunchAsFrame
// Dependencies: [5015, 9346, 9626, 9603, 2]
// Exports: tryLaunchAsFrame
// Module 9627 (tryLaunchAsFrame)
import FramesActionCreatorsDefault from "FramesActionCreators" /* 9603 */;
import canLaunchFrame from "canLaunchFrame" /* 9626 */;
import ApplicationStore from "ApplicationStore" /* 5015 */;
require = fn;
const MAIN_SURFACE = fn(9346).MAIN_SURFACE;
const size = fn(2);
const result = size.fileFinishedImporting("modules/activities/utils/tryLaunchAsFrame.tsx");
export const tryLaunchAsFrame = function tryLaunchAsFrame(applicationId) {
applicationId = applicationId.applicationId;
({ customId, referrerId, analyticsContext } = applicationId);
const application = ApplicationStore.getApplication(applicationId);
let tmp2 = null == application;
if (!tmp2) {
tmp2 = !canLaunchFrame.canLaunchFrame(application);
}
let flag = !tmp2;
if (!tmp2) {
const obj3 = { applicationId, surface: MAIN_SURFACE, customId, referrerId, analyticsContext };
FramesActionCreatorsDefault.launchFrame(obj3);
flag = true;
}
return flag;
};