Replace oc_config with OC.config
Signed-off-by: Corentin Noël <corentin@elementary.io>
This commit is contained in:
parent
6b95266e96
commit
ff99395ae2
|
@ -1,6 +1,5 @@
|
|||
module.exports = {
|
||||
globals: {
|
||||
oc_config: true,
|
||||
appVersion: true
|
||||
},
|
||||
extends: [
|
||||
|
|
|
@ -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') },
|
||||
|
|
Loading…
Reference in New Issue