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

30 lines
829 B
JavaScript

// Metro module 1091 (f1092).
import { WINDOW } from "./ignoreNextOnError";
Object.defineProperty(exports, Symbol.toStringTag, {
value: "Module"
});
export function baggageHeaderHasSentryValues(a0) {
return a0.split(",").some((item) => item.trim().startsWith("sentry-"));
}
export function createHeadersSafely(a0) {
let headers;
try {
headers = new Headers(a0);
} catch ($e) {
return void 0;
}
return headers;
}
export function getFullURL(a0) {
let href;
try {
href = new URL(a0, WINDOW.location.origin).href;
} catch ($e) {
return void 0;
}
return href;
}
export function isPerformanceResourceTiming(a0) {
return a0.entryType === "resource" && "initiatorType" in a0 && typeof a0.nextHopProtocol === "string" && (a0.initiatorType === "fetch" || a0.initiatorType === "xmlhttprequest");
}