From 072697a84c0883eb6b6b28984ddf32bda4da18ad Mon Sep 17 00:00:00 2001 From: Wolfgang Ginolas Date: Thu, 17 Apr 2025 11:31:47 +0200 Subject: [PATCH 1/2] Disable OnlyOffice protection (by password) features --- www/common/onlyoffice/inner.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, From 22a8f8ce8de15200833b1941b1dd88e561e3312d Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 17 Apr 2025 13:56:38 +0200 Subject: [PATCH 2/2] Use minified build --- www/common/store-interface.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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?'; }