Files
discord-decomp/_bundle/Module1043.js
T
2026-11-01 12:12:55 +02:00

24 lines
656 B
JavaScript

// Metro module 1043 (f1044).
import { WINDOW } from "./Module1039";
Object.defineProperty(exports, Symbol.toStringTag, {
value: "Module"
});
export const getNavigationEntry = function(r5 = true) {
const performance2 = WINDOW.performance;
const r3 = performance2 == null;
let r13 = void 0;
if (!r3) {
const getEntriesByType = performance2.getEntriesByType;
r13 = getEntriesByType == null ? void 0 : getEntriesByType.call(performance2, "navigation")[0];
}
L10: {
if (r5) {
if (r13 && r13.responseStart > 0 && r13.responseStart < performance.now()) {
break L10;
}
return void 0;
}
}
return r13;
};