38 lines
1.3 KiB
TypeScript
38 lines
1.3 KiB
TypeScript
// Module ID: 9528
|
|
// Function ID: 9529
|
|
// Name: tryLaunchAsFrame
|
|
// Dependencies: [4788, 9516, 9511, 9512, 2]
|
|
// Exports: tryLaunchAsFrame
|
|
|
|
// Module 9528 (tryLaunchAsFrame)
|
|
import canLaunchFrame from "canLaunchFrame" /* 9511 */;
|
|
import _launchFrameOnNativeDefault from "_launchFrameOnNative" /* 9512 */;
|
|
import closure_3 from "addApplication" /* 4788 */;
|
|
import { MAIN_SURFACE } from "FrameLayoutModes" /* 9516 */;
|
|
|
|
require = arg1;
|
|
const result = require("set").fileFinishedImporting("modules/activities/utils/tryLaunchAsFrame.tsx");
|
|
|
|
export const tryLaunchAsFrame = function tryLaunchAsFrame(applicationId) {
|
|
applicationId = applicationId.applicationId;
|
|
({ customId, referrerId, analyticsContext } = applicationId);
|
|
application = application.getApplication(applicationId);
|
|
let tmp2 = null == application;
|
|
if (!tmp2) {
|
|
let obj = canLaunchFrame;
|
|
tmp2 = !obj.canLaunchFrame(application);
|
|
}
|
|
let flag = !tmp2;
|
|
if (!tmp2) {
|
|
obj = { applicationId: null, surface: null, customId: null, referrerId: null, analyticsContext: null };
|
|
obj[0] = applicationId;
|
|
obj[1] = MAIN_SURFACE;
|
|
obj[2] = customId;
|
|
obj[3] = referrerId;
|
|
obj[4] = analyticsContext;
|
|
_launchFrameOnNativeDefault.launchFrame(obj);
|
|
flag = true;
|
|
const obj2 = _launchFrameOnNativeDefault;
|
|
}
|
|
return flag;
|
|
};
|