Update src/vector/platform/WebPlatform.ts

This commit is contained in:
Michael Telatynski 2021-02-11 16:27:30 +00:00 committed by GitHub
parent 92a5787528
commit e15d1c1501
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -189,7 +189,7 @@ export default class WebPlatform extends VectorBasePlatform {
const appName = [
url.host,
url.pathname.replace(/\/$/, ""), // Remove trailing slash if present
].join('');
].join("");
const ua = new UAParser();
const browserName = ua.getBrowser().name || "unknown browser";