We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d14585 commit 4575321Copy full SHA for 4575321
packages/core/src/sdk.ts
@@ -55,7 +55,9 @@ export function setCurrentClient(client: Client): void {
55
*/
56
function registerClientOnGlobalHub(client: Client): void {
57
const sentryGlobal = getSentryCarrier(getMainCarrier());
58
- if (sentryGlobal.stack && typeof sentryGlobal.stack.getStackTop === 'function') {
+ try {
59
sentryGlobal.stack.getStackTop().client = client;
60
- }
+ } catch {
61
+ // ignore errors here
62
+ }
63
}
0 commit comments