From ff99395ae2e72a067e728658fc0e585ef963e1d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20No=C3=ABl?= Date: Sat, 11 Apr 2020 17:25:49 +0200 Subject: [PATCH] Replace oc_config with OC.config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Corentin Noël --- .eslintrc.js | 1 - src/main.js | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index f4cdaeac..307f668a 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,6 +1,5 @@ module.exports = { globals: { - oc_config: true, appVersion: true }, extends: [ diff --git a/src/main.js b/src/main.js index 0328d5f6..c752e160 100644 --- a/src/main.js +++ b/src/main.js @@ -57,14 +57,12 @@ Vue.prototype.t = t Vue.prototype.n = n // eslint-disable-next-line Vue.prototype.appVersion = appVersion -// eslint-disable-next-line -Vue.prototype.oc_config = oc_config Vue.prototype.OC = OC Vue.prototype.OCA = OCA // Force redirect if rewrite enabled but accessed through index.php if (window.location.pathname.split('/')[1] === 'index.php' - && oc_config.modRewriteWorking) { + && OC.config.modRewriteWorking) { router.push({ name: 'group', params: { selectedGroup: t('contacts', 'All contacts') },