Skip to content

Commit d9fadbf

Browse files
committed
[DSC-1570] Init Datadog Rum on CSR only
1 parent 6ff85f6 commit d9fadbf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/app/app.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ export class AppComponent implements OnInit, AfterViewInit {
111111

112112
this.dispatchWindowSize(this._window.nativeWindow.innerWidth, this._window.nativeWindow.innerHeight);
113113

114-
this.datadogRumService.initDatadogRum();
114+
if (isPlatformBrowser(this.platformId)) {
115+
this.datadogRumService.initDatadogRum();
116+
}
115117
}
116118

117119
private storeCSSVariables() {

0 commit comments

Comments
 (0)