add user agent in log export

This commit is contained in:
Bruno Windels 2023-01-18 08:33:02 +01:00
parent 508d88edb5
commit 7f004193d3
2 changed files with 2 additions and 1 deletions

View File

@ -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);

View File

@ -366,7 +366,7 @@ export class Platform {
}
get description() {
return navigator.userAgent ?? "<unknown>";
return "web-" + (navigator.userAgent ?? "<unknown>");
}
dispose() {