decord/source/modules/frames/utils/canLaunchFrame.tsx

27 lines
919 B
TypeScript
Raw Normal View History

2026-07-30 10:14:41 +00:00
// Module ID: 10501
// Function ID: 10502
2026-07-20 16:05:17 +00:00
// Name: canLaunchFrame
2026-07-30 10:14:41 +00:00
// Dependencies: [676, 8012, 5692, 2]
2026-07-20 16:05:17 +00:00
// Exports: canLaunchFrame
2026-07-30 10:14:41 +00:00
// Module 10501 (canLaunchFrame)
2026-07-23 10:11:24 +00:00
import { ApplicationFlags } from "ME";
const result = require("getApplicationFlags").fileFinishedImporting("modules/frames/utils/canLaunchFrame.tsx");
2026-07-20 16:05:17 +00:00
export const canLaunchFrame = function canLaunchFrame(application) {
if (null != application) {
if (obj.isRealApplication(application)) {
2026-07-29 08:29:29 +00:00
let tmpResult = tmp(5692);
let hasApplicationFlagResult = tmpResult.hasApplicationFlag(application, ApplicationFlags.EMBEDDED);
tmpResult = tmp(5692);
2026-07-20 16:05:17 +00:00
if (hasApplicationFlagResult) {
2026-07-29 08:29:29 +00:00
hasApplicationFlagResult = tmpResult.hasApplicationFlag(application, ApplicationFlags.CONTEXTLESS_ACTIVITY);
2026-07-20 16:05:17 +00:00
}
return hasApplicationFlagResult;
}
2026-07-30 10:14:41 +00:00
obj = require(8012) /* getShelfBadgeTypeIfActive */;
2026-07-20 16:05:17 +00:00
}
return false;
};