don't throw alerts in the middle of someone's presentation

This commit is contained in:
ansuz
2017-07-31 15:07:34 +02:00
parent 7cd42d5ff1
commit 1c238100c8

View File

@@ -635,8 +635,10 @@ define([
toolbar.reconnecting(info.myId); toolbar.reconnecting(info.myId);
Cryptpad.findOKButton().click(); Cryptpad.findOKButton().click();
} else { } else {
if (!Slide.isPresentURL()) {
Cryptpad.alert(Messages.common_connectionLost, undefined, true); Cryptpad.alert(Messages.common_connectionLost, undefined, true);
} }
}
}; };
config.onError = onConnectError; config.onError = onConnectError;