29 lines
896 B
TypeScript
29 lines
896 B
TypeScript
// Module ID: 10576
|
|
// Function ID: 82453
|
|
// Name: tryLaunchAsFrame
|
|
// Dependencies: [4168, 10443, 5665, 2]
|
|
// Exports: tryLaunchAsFrame
|
|
|
|
// Module 10576 (tryLaunchAsFrame)
|
|
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
|
|
|
|
const require = arg1;
|
|
const result = require("_launchFrameOnNative").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(10443) /* canLaunchFrame */;
|
|
tmp2 = !obj.canLaunchFrame(application);
|
|
}
|
|
let flag = !tmp2;
|
|
if (!tmp2) {
|
|
obj = { applicationId };
|
|
importDefault(5665).launchFrame(obj);
|
|
flag = true;
|
|
const obj2 = importDefault(5665);
|
|
}
|
|
return flag;
|
|
};
|