fix(front): allow dash in whiteboard id
* prevent transformation of uuid
This commit is contained in:
parent
0240171d0e
commit
b11520788e
@ -24,7 +24,7 @@ if (randomid && !whiteboardId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
whiteboardId = whiteboardId || "myNewWhiteboard";
|
whiteboardId = whiteboardId || "myNewWhiteboard";
|
||||||
whiteboardId = unescape(encodeURIComponent(whiteboardId)).replace(/[^a-zA-Z0-9 ]/g, "");
|
whiteboardId = unescape(encodeURIComponent(whiteboardId)).replace(/[^a-zA-Z0-9\-]/g, "");
|
||||||
const myUsername = getQueryVariable("username") || "unknown" + (Math.random() + "").substring(2, 6);
|
const myUsername = getQueryVariable("username") || "unknown" + (Math.random() + "").substring(2, 6);
|
||||||
const accessToken = getQueryVariable("accesstoken") || "";
|
const accessToken = getQueryVariable("accesstoken") || "";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user