34 lines
1.6 KiB
React
34 lines
1.6 KiB
React
/* Metro module 1051; source: unknown; dependencies: [1047] */
|
|
function _fun11097(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#11097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1178:6, offset: 0x00da0e47, size: 78 bytes, params: 8, frame: 17
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
exports.getNavigationEntry = getNavigationEntry;
|
|
}
|
|
|
|
function getNavigationEntry() { // fn#11098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1178:112, offset: 0x00da0e95, size: 158 bytes, params: 1, frame: 15
|
|
var responseStart;
|
|
const value = undefined;
|
|
const r4 = arguments.length > 0 && value !== arguments[0];
|
|
const r2 = r4 ? arguments[0] : !r4;
|
|
const WINDOW = (require(1047) /* metro dependency 1047 */).WINDOW;
|
|
let performance = WINDOW.performance;
|
|
const r0 = performance == null || performance.getEntriesByType == null ? value : performance.getEntriesByType('navigation')[0];
|
|
if (r2) {
|
|
if (r0) {
|
|
responseStart = r0.responseStart;
|
|
if (responseStart > 0) {
|
|
responseStart = r0.responseStart;
|
|
performance = global.performance;
|
|
return responseStart < performance.now() ? r0 : value;
|
|
}
|
|
return value;
|
|
}
|
|
return value;
|
|
}
|
|
return r0;
|
|
}
|
|
|