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", {
|
whiteboard.loadWhiteboard("#whiteboardContainer", {
|
||||||
//Load the whiteboard
|
//Load the whiteboard
|
||||||
whiteboardId: whiteboardId,
|
whiteboardId: whiteboardId,
|
||||||
username: btoa(myUsername),
|
username: btoa(encodeURIComponent(myUsername)),
|
||||||
backgroundGridUrl: "./images/" + ConfigService.backgroundGridImage,
|
backgroundGridUrl: "./images/" + ConfigService.backgroundGridImage,
|
||||||
sendFunction: function (content) {
|
sendFunction: function (content) {
|
||||||
if (ReadOnlyService.readOnlyActive) return;
|
if (ReadOnlyService.readOnlyActive) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user