23 lines
659 B
JavaScript
23 lines
659 B
JavaScript
// Metro module 1080 (f1081).
|
|
import { defineIntegration } from "./Module817";
|
|
import { WINDOW, getHttpRequestData } from "./ignoreNextOnError";
|
|
Object.defineProperty(exports, Symbol.toStringTag, {
|
|
value: "Module"
|
|
});
|
|
export const httpContextIntegration = defineIntegration(() => ({
|
|
name: "HttpContext",
|
|
preprocessEvent: (a0) => {
|
|
if (!(!WINDOW.navigator && (!WINDOW.location && !WINDOW.document))) {
|
|
const httpRequestData = getHttpRequestData();
|
|
a0.request = {
|
|
...httpRequestData,
|
|
...a0.request,
|
|
headers: {
|
|
...httpRequestData.headers,
|
|
...a0.request?.headers
|
|
}
|
|
};
|
|
}
|
|
}
|
|
}));
|