create unique device names

jryans/remove-brand
Bruno Windels 2020-06-30 17:29:31 +02:00
parent 8e3d1407c0
commit 6da70bdfbd
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ export default class WebPlatform extends VectorBasePlatform {
}
getDefaultDeviceDisplayName(): string {
return "unknown browser";
return "unknown browser " + Math.round(Number.MAX_SAFE_INTEGER * Math.random());
// strip query-string and fragment from uri
const u = url.parse(window.location.href);