catch error on smallestScreenResolutions not set
This commit is contained in:
parent
774db98cc7
commit
30acafc1ec
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user