feat(front): deactivate readOnly in dev by default
This commit is contained in:
parent
3dd889b800
commit
c93d3e643a
@ -70,7 +70,7 @@ function main() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
// start in readOnly mode
|
// by default set in readOnly mode
|
||||||
ReadOnlyService.activateReadOnlyMode();
|
ReadOnlyService.activateReadOnlyMode();
|
||||||
|
|
||||||
if (getQueryVariable("webdav") == "true") {
|
if (getQueryVariable("webdav") == "true") {
|
||||||
@ -539,6 +539,12 @@ function main() {
|
|||||||
shortcutFunctions.setTool_mouse();
|
shortcutFunctions.setTool_mouse();
|
||||||
// fix bug cursor not showing up
|
// fix bug cursor not showing up
|
||||||
whiteboard.refreshCursorAppearance();
|
whiteboard.refreshCursorAppearance();
|
||||||
|
|
||||||
|
if (process.env.NODE_ENV === "production") {
|
||||||
|
ReadOnlyService.activateReadOnlyMode();
|
||||||
|
} else {
|
||||||
|
ReadOnlyService.deactivateReadOnlyMode();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
//Prevent site from changing tab on drag&drop
|
//Prevent site from changing tab on drag&drop
|
||||||
|
Loading…
Reference in New Issue
Block a user