32 lines
1,003 B
TypeScript
32 lines
1,003 B
TypeScript
// Module ID: 10582
|
|
// Function ID: 10583
|
|
// Name: tryLaunchAsFrame
|
|
// Dependencies: [4383, 10565, 10567, 10568, 2]
|
|
// Exports: tryLaunchAsFrame
|
|
|
|
// Module 10582 (tryLaunchAsFrame)
|
|
import addApplication from "addApplication";
|
|
import { MAIN_SURFACE } from "FrameLayoutModes";
|
|
|
|
const require = arg1;
|
|
const result = require("canLaunchFrame").fileFinishedImporting("modules/activities/utils/tryLaunchAsFrame.tsx");
|
|
|
|
export const tryLaunchAsFrame = function tryLaunchAsFrame(applicationId) {
|
|
applicationId = applicationId.applicationId;
|
|
application = application.getApplication(applicationId);
|
|
let tmp2 = null == application;
|
|
if (!tmp2) {
|
|
let obj = require(10567) /* canLaunchFrame */;
|
|
tmp2 = !obj.canLaunchFrame(application);
|
|
}
|
|
let flag = !tmp2;
|
|
if (!tmp2) {
|
|
obj = { applicationId: null, surface: null };
|
|
obj[0] = applicationId;
|
|
obj[1] = MAIN_SURFACE;
|
|
importDefault(10568).launchFrame(obj);
|
|
flag = true;
|
|
const obj2 = importDefault(10568);
|
|
}
|
|
return flag;
|
|
};
|