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

20 lines
600 B
JavaScript

// Metro module 1097 (f1098).
import { getActiveSpan, getCurrentScope, _INTERNAL_setSpanForScope } from "./Module817";
Object.defineProperty(exports, Symbol.toStringTag, {
value: "Module"
});
export function setActiveSpanInBrowser(a0) {
let currentScope;
const activeSpan = getActiveSpan();
if (activeSpan !== a0) {
currentScope = getCurrentScope();
a0.end = new Proxy(a0.end, {
apply: (a0, a1, a2) => {
_INTERNAL_setSpanForScope(currentScope, activeSpan);
return Reflect.apply(a0, a1, a2);
}
});
_INTERNAL_setSpanForScope(currentScope, a0);
}
}