mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
add user agent in log export
This commit is contained in:
parent
508d88edb5
commit
7f004193d3
@ -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);
|
||||
|
@ -366,7 +366,7 @@ export class Platform {
|
||||
}
|
||||
|
||||
get description() {
|
||||
return navigator.userAgent ?? "<unknown>";
|
||||
return "web-" + (navigator.userAgent ?? "<unknown>");
|
||||
}
|
||||
|
||||
dispose() {
|
||||
|
Loading…
Reference in New Issue
Block a user