catch error on smallestScreenResolutions not set

This commit is contained in:
raphael 2020-05-06 17:27:07 +02:00
parent 774db98cc7
commit 30acafc1ec

View File

@ -231,7 +231,7 @@ function startBackendServer(port) {
socket.on('updateScreenResolution', function (content) {
content = escapeAllContentStrings(content);
if (accessToken === "" || accessToken == content["at"]) {
if (smallestScreenResolutions[whiteboardId] && (accessToken === "" || accessToken == content["at"])) {
smallestScreenResolutions[whiteboardId][socket.id] = content["windowWidthHeight"] || { w: 10000, h: 10000 };
sendSmallestScreenResolution();
}