From 6da70bdfbd09d4156582f3184b6a77fc8146d5f4 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 30 Jun 2020 17:29:31 +0200 Subject: [PATCH] create unique device names --- src/vector/platform/WebPlatform.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vector/platform/WebPlatform.ts b/src/vector/platform/WebPlatform.ts index 49ed61d5..2539440f 100644 --- a/src/vector/platform/WebPlatform.ts +++ b/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);