File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/platforms/javascript/common/session-replay Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ Sentry.init({
64
64
});
65
65
66
66
// You can access the active replay instance from anywhere in your code like this:
67
- const replay = Sentry .getClient ().getIntegrationById (" Replay" );
67
+ const replay = Sentry .getClient ().getIntegrationByName (" Replay" );
68
68
69
69
// This starts in `session` mode, regardless of sample rates
70
70
replay .start ();
@@ -134,7 +134,7 @@ Sentry.init({
134
134
// Check if user is an employee, if so, always record a replay
135
135
if (loggedInUser .isEmployee ) {
136
136
// You can get a reference to the Sentry Replay integration like so:
137
- const replay = Sentry .getClient ().getIntegrationById (" Replay" );
137
+ const replay = Sentry .getClient ().getIntegrationByName (" Replay" );
138
138
139
139
replay .flush ();
140
140
}
You can’t perform that action at this time.
0 commit comments