Files
discord-decomp/sources/modules/frames/utils/canLaunchFrame.tsx
T
2026-07-27 16:20:00 +03:00

27 lines
1.6 KiB
TypeScript

/* Metro module 8045; source: modules/frames/utils/canLaunchFrame.tsx; dependencies: [661, 8046, 7504, 2] */
function _fun63764(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8223:6, offset: 0x01b8f644, size: 115 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(661) /* metro dependency 661: Constants */).ApplicationFlags;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/frames/utils/canLaunchFrame.tsx');
exports.canLaunchFrame = canLaunchFrame;
}
function canLaunchFrame(a0) { // fn#63765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8223:213, offset: 0x01b8f6b7, size: 129 bytes, params: 2, frame: 18
var moduleValue3;
if (a0 != null) {
var hasApplicationFlag;
var moduleValue = require(8046) /* metro dependency 8046: AppLauncherUtils */;
if (moduleValue.isRealApplication(a0)) {
hasApplicationFlag = (require(7504) /* metro dependency 7504: ApplicationFlagUtils */).hasApplicationFlag(a0,
ApplicationFlags.EMBEDDED);
moduleValue3 = require(7504) /* metro dependency 7504: ApplicationFlagUtils */;
return hasApplicationFlag && moduleValue3.hasApplicationFlag(a0, ApplicationFlags.CONTEXTLESS_ACTIVITY);
}
}
return false;
}