From 31414097339fef66d45e9a9fd1b2bb7689c7d442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Cie=C5=9Blak?= Date: Tue, 25 May 2021 14:50:16 +0200 Subject: [PATCH] Prevent btoa() error if username contains non-Lating characters --- src/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/main.js b/src/js/main.js index 4a74660..a58aec4 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -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;