From 95099e3818b109c7fedc7d8fbcbb3e349ce3beac Mon Sep 17 00:00:00 2001 From: rofl256 Date: Fri, 9 Feb 2018 01:42:06 +0100 Subject: [PATCH] add random numbers to users without a name --- public/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/main.js b/public/js/main.js index b87cd91..16711ba 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -1,7 +1,7 @@ var whiteboardId = getQueryVariable("whiteboardid"); whiteboardId = whiteboardId || "myNewWhiteboard"; var myUsername = getQueryVariable("username"); -myUsername = myUsername || "unkonwn"; +myUsername = myUsername || "unkonwn"+(Math.random()+"").substring(2,6); var url = document.URL.substr(0,document.URL.lastIndexOf('/')); var signaling_socket = null;