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

Commit

Permalink
Revert "fix: issue with userAgentData"
Browse files Browse the repository at this point in the history
This reverts commit dde1a95.
  • Loading branch information
koen1711 committed Apr 15, 2024
1 parent dde1a95 commit 1079414
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[0].brand ??
navigator.userAgentData?.brands[1].brand ??
translate.instant("UNKNOWN");
// @ts-ignore
this.browserVersion =
navigator["userAgentData"]?.brands[0].version ??
navigator.userAgentData?.brands[1].version ??
translate.instant("UNKNOWN");
this.serialPort = this.robotWiredState.serialPort;
if (!("serial" in navigator)) {
Expand Down

0 comments on commit 1079414

Please sign in to comment.