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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-06-05 09:48:28 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2020-06-05 10:42:39 +0300
commit22c00295d85b9ca5b13a37995403ff341bec7de7 (patch)
tree2cda7f8ac8cc718a2f4a3d817fa3ea2e53ed0b7d /core/src
parent81f83d3c1f9be926bf1898212e2445aa9c292dc1 (diff)
Do not import the full OC since we don't need it
Import what we need. Saves off a bunch of bytes of the bundle (600 kilobytes to be exact) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/src')
-rw-r--r--core/src/maintenance.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/src/maintenance.js b/core/src/maintenance.js
index 70b51f7cebc..de4315d32a2 100644
--- a/core/src/maintenance.js
+++ b/core/src/maintenance.js
@@ -20,10 +20,9 @@
*/
import Axios from '@nextcloud/axios'
+import { getRootUrl } from '@nextcloud/router'
-import OC from './OC/index'
-
-const url = `${OC.getRootPath()}/status.php`
+const url = getRootUrl() + '/status.php'
const check = () => {
console.info('checking the Nextcloud maintenance status')