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 = {
|
const log = {
|
||||||
formatVersion: 1,
|
formatVersion: 1,
|
||||||
appVersion: this._platform.updateService?.version,
|
appVersion: this._platform.updateService?.version,
|
||||||
|
platform: this._platform.description,
|
||||||
items: this._items.map(i => JSON.parse(i.json))
|
items: this._items.map(i => JSON.parse(i.json))
|
||||||
};
|
};
|
||||||
const json = JSON.stringify(log);
|
const json = JSON.stringify(log);
|
||||||
|
@ -366,7 +366,7 @@ export class Platform {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get description() {
|
get description() {
|
||||||
return navigator.userAgent ?? "<unknown>";
|
return "web-" + (navigator.userAgent ?? "<unknown>");
|
||||||
}
|
}
|
||||||
|
|
||||||
dispose() {
|
dispose() {
|
||||||
|
Loading…
Reference in New Issue
Block a user