Skip to content

Commit

Permalink
Replace oc_config with OC.config
Browse files Browse the repository at this point in the history
Signed-off-by: Corentin Noël <corentin@elementary.io>
  • Loading branch information
Corentin Noël committed Apr 11, 2020
1 parent 6b95266 commit ff99395
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
globals: {
oc_config: true,
appVersion: true
},
extends: [
Expand Down
4 changes: 1 addition & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') },
Expand Down

0 comments on commit ff99395

Please sign in to comment.