Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ONLYOFFICE/onlyoffice-nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'js/desktop.js')
-rw-r--r--js/desktop.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/desktop.js b/js/desktop.js
index 2c2f0da..f7ebc8c 100644
--- a/js/desktop.js
+++ b/js/desktop.js
@@ -25,6 +25,12 @@
}
OCA.Onlyoffice.Desktop = true;
+
+ if (location.href.indexOf(_oc_appswebroots.dashboard) !== -1) {
+ location.href = location.href.split(_oc_appswebroots.dashboard)[0] + _oc_appswebroots.files;
+ return;
+ }
+
$("html").addClass("AscDesktopEditor");
var domain = new RegExp("^http(s)?:\/\/[^\/]+").exec(location)[0];