decord/source/modules/frames/utils/canLaunchFrame.tsx
2026-08-06 08:05:19 +00:00

26 lines
919 B
TypeScript

// Module ID: 10512
// Function ID: 10513
// Name: canLaunchFrame
// Dependencies: [676, 8261, 7510, 2]
// Exports: canLaunchFrame
// Module 10512 (canLaunchFrame)
import { ApplicationFlags } from "ME";
const result = require("getApplicationFlags").fileFinishedImporting("modules/frames/utils/canLaunchFrame.tsx");
export const canLaunchFrame = function canLaunchFrame(application) {
if (null != application) {
if (obj.isRealApplication(application)) {
let tmpResult = tmp(7510);
let hasApplicationFlagResult = tmpResult.hasApplicationFlag(application, ApplicationFlags.EMBEDDED);
tmpResult = tmp(7510);
if (hasApplicationFlagResult) {
hasApplicationFlagResult = tmpResult.hasApplicationFlag(application, ApplicationFlags.CONTEXTLESS_ACTIVITY);
}
return hasApplicationFlagResult;
}
obj = require(8261) /* getShelfBadgeTypeIfActive */;
}
return false;
};