29 lines
1,016 B
TypeScript
29 lines
1,016 B
TypeScript
// Module ID: 9431
|
|
// Function ID: 9432
|
|
// Name: canLaunchFrame
|
|
// Dependencies: [676, 8113, 8404, 2]
|
|
// Exports: canLaunchFrame
|
|
|
|
// Module 9431 (canLaunchFrame)
|
|
import set from "set" /* 2 */;
|
|
import ME from "ME" /* 676 */;
|
|
import getShelfBadgeTypeIfActive from "getShelfBadgeTypeIfActive" /* 8113 */;
|
|
|
|
const ApplicationFlags = ME.ApplicationFlags;
|
|
const result = set.fileFinishedImporting("modules/frames/utils/canLaunchFrame.tsx");
|
|
|
|
export const canLaunchFrame = function canLaunchFrame(application) {
|
|
if (null != application) {
|
|
if (obj.isRealApplication(application)) {
|
|
let tmpResult = tmp(8404);
|
|
let hasApplicationFlagResult = tmpResult.hasApplicationFlag(application, ApplicationFlags.EMBEDDED);
|
|
tmpResult = tmp(8404);
|
|
if (hasApplicationFlagResult) {
|
|
hasApplicationFlagResult = tmpResult.hasApplicationFlag(application, ApplicationFlags.CONTEXTLESS_ACTIVITY);
|
|
}
|
|
return hasApplicationFlagResult;
|
|
}
|
|
obj = getShelfBadgeTypeIfActive;
|
|
}
|
|
return false;
|
|
};
|