feat(front): deactivate readOnly in dev by default

This commit is contained in:
Florent Chehab 2020-05-06 22:21:09 +02:00
parent 3dd889b800
commit c93d3e643a
No known key found for this signature in database
GPG Key ID: 9A0CE018889EA246

View File

@ -70,7 +70,7 @@ function main() {
});
$(document).ready(function () {
// start in readOnly mode
// by default set in readOnly mode
ReadOnlyService.activateReadOnlyMode();
if (getQueryVariable("webdav") == "true") {
@ -539,6 +539,12 @@ function main() {
shortcutFunctions.setTool_mouse();
// fix bug cursor not showing up
whiteboard.refreshCursorAppearance();
if (process.env.NODE_ENV === "production") {
ReadOnlyService.activateReadOnlyMode();
} else {
ReadOnlyService.deactivateReadOnlyMode();
}
});
//Prevent site from changing tab on drag&drop