Merge pull request #992 from vector-im/bwindels/loguseragent

add user agent in log export
This commit is contained in:
Bruno Windels 2023-01-19 08:44:48 +00:00 committed by GitHub
commit c5ca23f663
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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() {