From 7f004193d30de325e01d26047b91b7f6254e4199 Mon Sep 17 00:00:00 2001 From: Bruno Windels <274386+bwindels@users.noreply.github.com> Date: Wed, 18 Jan 2023 08:33:02 +0100 Subject: [PATCH] add user agent in log export --- src/logging/IDBLogger.ts | 1 + src/platform/web/Platform.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/logging/IDBLogger.ts b/src/logging/IDBLogger.ts index ab9474b0..863ff5a3 100644 --- a/src/logging/IDBLogger.ts +++ b/src/logging/IDBLogger.ts @@ -201,6 +201,7 @@ class IDBLogExport implements ILogExport { const log = { formatVersion: 1, appVersion: this._platform.updateService?.version, + platform: this._platform.description, items: this._items.map(i => JSON.parse(i.json)) }; const json = JSON.stringify(log); diff --git a/src/platform/web/Platform.js b/src/platform/web/Platform.js index 0d95e585..a138e70c 100644 --- a/src/platform/web/Platform.js +++ b/src/platform/web/Platform.js @@ -366,7 +366,7 @@ export class Platform { } get description() { - return navigator.userAgent ?? ""; + return "web-" + (navigator.userAgent ?? ""); } dispose() {