diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index 9ef78bf21..f447fc398 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -1724,7 +1724,7 @@ define([ deleteOfflineLocks(); handleNewLocks({}, content.locks); if (APP.unsavedChanges) { - varĀ unsaved = APP.unsavedChanges; + var unsaved = APP.unsavedChanges; delete APP.unsavedChanges; rtChannel.sendMsg(unsaved, null, function (err, hash) { if (err) { return void UI.alert(Messages.oo_lostEdits); } @@ -1853,6 +1853,7 @@ define([ permissions: { download: dc?.permissions?.download || false, print: dc?.permissions?.print || true, + protect: false } }, "documentType": file.doc, diff --git a/www/common/store-interface.js b/www/common/store-interface.js index 5ecf2c679..4988e9fa0 100644 --- a/www/common/store-interface.js +++ b/www/common/store-interface.js @@ -4,7 +4,7 @@ (() => { const factory = function () { - let USE_MIN = false; + let USE_MIN = true; let path = '/common/worker.bundle.js?'; if (USE_MIN) { path = '/common/worker.bundle.min.js?'; }