We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents efdc357 + 9efcbb2 commit 2a422baCopy full SHA for 2a422ba
1 file changed
src/app/root/root.component.ts
@@ -144,7 +144,7 @@ export class RootComponent implements OnInit {
144
}
145
146
getBrowserName(): string {
147
- const userAgent = this._window.nativeWindow.navigator.userAgent;
+ const userAgent = this._window.nativeWindow.navigator?.userAgent;
148
if (/Firefox/.test(userAgent)) {
149
return 'firefox';
150
@@ -155,7 +155,7 @@ export class RootComponent implements OnInit {
155
156
157
getOSName(): string {
158
159
if (/Windows/.test(userAgent)) {
160
return 'windows';
161
0 commit comments