diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-06-05 09:48:28 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-06-05 10:42:39 +0300 |
commit | 22c00295d85b9ca5b13a37995403ff341bec7de7 (patch) | |
tree | 2cda7f8ac8cc718a2f4a3d817fa3ea2e53ed0b7d /core/src | |
parent | 81f83d3c1f9be926bf1898212e2445aa9c292dc1 (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.js | 5 |
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') |