Prevent btoa() error if username contains non-Lating characters
This commit is contained in:
parent
9b4dac66b2
commit
3141409733
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user