Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
fix: issue with userAgentData
Browse files Browse the repository at this point in the history
  • Loading branch information
koen1711 committed Apr 15, 2024
1 parent 5cbed99 commit dde1a95
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ export class DebugInformationDialog {
) {
// @ts-ignore
this.os =
navigator.userAgentData?.platform ?? translate.instant("UNKNOWN");
navigator["userAgentData"]?.platform ?? translate.instant("UNKNOWN");
// @ts-ignore
this.browser =
navigator.userAgentData?.brands[1].brand ??
navigator["userAgentData"]?.brands[0].brand ??
translate.instant("UNKNOWN");
// @ts-ignore
this.browserVersion =
navigator.userAgentData?.brands[1].version ??
navigator["userAgentData"]?.brands[0].version ??
translate.instant("UNKNOWN");
this.serialPort = this.robotWiredState.serialPort;
if (!("serial" in navigator)) {
Expand Down

0 comments on commit dde1a95

Please sign in to comment.