24 lines
674 B
JavaScript
24 lines
674 B
JavaScript
// Metro module 6430 (f6431).
|
|
import { DEBUG_BUILD } from "./Module6396";
|
|
import { logger, consoleSandbox } from "./consoleSandbox_6368";
|
|
import { getCurrentScope } from "./Module6395";
|
|
export function initAndBind(a0, a1) {
|
|
if (a1.debug === true) {
|
|
if (DEBUG_BUILD) {
|
|
logger.enable();
|
|
} else {
|
|
consoleSandbox(() => {
|
|
console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");
|
|
});
|
|
}
|
|
}
|
|
getCurrentScope().update(a1.initialScope);
|
|
const r33 = new a0(a1);
|
|
getCurrentScope().setClient(r33);
|
|
r33.init();
|
|
return r33;
|
|
}
|
|
export function setCurrentClient(a0) {
|
|
getCurrentScope().setClient(a0);
|
|
}
|