From 22c00295d85b9ca5b13a37995403ff341bec7de7 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 5 Jun 2020 08:48:28 +0200 Subject: 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 --- core/src/maintenance.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'core/src') 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') -- cgit v1.2.3