Replace oc_config with OC.config

Signed-off-by: Corentin Noël <corentin@elementary.io>
This commit is contained in:
Corentin Noël 2020-04-11 17:25:49 +02:00
parent 6b95266e96
commit ff99395ae2
2 changed files with 1 additions and 4 deletions

View File

@ -1,6 +1,5 @@
module.exports = {
globals: {
oc_config: true,
appVersion: true
},
extends: [

View File

@ -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') },