create unique device names

pull/14502/head
Bruno Windels 2 years ago
parent 8e3d1407c0
commit 6da70bdfbd
  1. 2
      src/vector/platform/WebPlatform.ts

@ -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);

Loading…
Cancel
Save