diff --git a/cypress/e2e/api/SessionApi.spec.js b/cypress/e2e/api/SessionApi.spec.js index 82b7879f398..baf8b0121c1 100644 --- a/cypress/e2e/api/SessionApi.spec.js +++ b/cypress/e2e/api/SessionApi.spec.js @@ -38,6 +38,7 @@ describe('The session Api', function() { config: { modRewriteWorking: false }, webroot: '', } + window._oc_webroot: '' }) beforeEach(function() { diff --git a/cypress/e2e/api/SyncServiceProvider.spec.js b/cypress/e2e/api/SyncServiceProvider.spec.js index 2d0e940fb8f..aebb89c2e14 100644 --- a/cypress/e2e/api/SyncServiceProvider.spec.js +++ b/cypress/e2e/api/SyncServiceProvider.spec.js @@ -34,8 +34,8 @@ describe('Sync service provider', function() { cy.createUser(user) window.OC = { config: { modRewriteWorking: false }, - webroot: '', } + window._oc_webroot = '' }) beforeEach(function() { diff --git a/cypress/e2e/api/UsersApi.spec.js b/cypress/e2e/api/UsersApi.spec.js index 2e3d72287ea..ea85a3e669b 100644 --- a/cypress/e2e/api/UsersApi.spec.js +++ b/cypress/e2e/api/UsersApi.spec.js @@ -32,8 +32,8 @@ describe('The user mention API', function() { cy.createUser(user) window.OC = { config: { modRewriteWorking: false }, - webroot: '', } + window._oc_webroot = '' }) let fileId diff --git a/index.html b/index.html index 2a1d355f9da..f705c9414eb 100644 --- a/index.html +++ b/index.html @@ -24,12 +24,12 @@ return string } OC = { - webroot: '/dist/OC_WEBROOT', config: {}, isUserAdmin() { return true } } + _oc_webroot = '/dist/OC_WEBROOT'