diff options
Diffstat (limited to 'js/editor.js')
-rw-r--r-- | js/editor.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/js/editor.js b/js/editor.js index 5cb0c46..36d9cf1 100644 --- a/js/editor.js +++ b/js/editor.js @@ -109,10 +109,6 @@ return; } - if (config.editorConfig.tenant) { - displayError(t(OCA.Onlyoffice.AppName, "You are using public demo ONLYOFFICE Document Server. Please do not store private sensitive data.")); - } - var docIsChanged = null; var docIsChangedTimeout = null; @@ -138,6 +134,12 @@ "onDocumentStateChange": setPageTitle, }; + if (config.editorConfig.tenant) { + config.events.onAppReady = function() { + OCA.Onlyoffice.docEditor.showMessage(t(OCA.Onlyoffice.AppName, "You are using public demo ONLYOFFICE Document Server. Please do not store private sensitive data.")); + }; + } + if (OCA.Onlyoffice.inframe && !shareToken || OC.currentUser) { config.events.onRequestSaveAs = OCA.Onlyoffice.onRequestSaveAs; |