add random numbers to users without a name

This commit is contained in:
rofl256 2018-02-09 01:42:06 +01:00
parent 3b857865c4
commit 95099e3818

View File

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