Prevent btoa() error if username contains non-Lating characters

This commit is contained in:
Marcin Cieślak 2021-05-25 14:50:16 +02:00
parent 9b4dac66b2
commit 3141409733

View File

@ -154,7 +154,7 @@ function initWhiteboard() {
whiteboard.loadWhiteboard("#whiteboardContainer", {
//Load the whiteboard
whiteboardId: whiteboardId,
username: btoa(myUsername),
username: btoa(encodeURIComponent(myUsername)),
backgroundGridUrl: "./images/" + ConfigService.backgroundGridImage,
sendFunction: function (content) {
if (ReadOnlyService.readOnlyActive) return;