summaryrefslogtreecommitdiffstats
path: root/src/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.js')
-rw-r--r--src/main.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.js b/src/main.js
index 79347034..81f01b6f 100644
--- a/src/main.js
+++ b/src/main.js
@@ -26,6 +26,16 @@ import router from './router'
import store from './store'
import { sync } from 'vuex-router-sync'
+// CSP config for webpack dynamic chunk loading
+// eslint-disable-next-line
+__webpack_nonce__ = btoa(OC.requestToken)
+
+// Correct the root of the app for chunk loading
+// OC.linkTo matches the apps folders
+// OC.generateUrl ensure the index.php (or not)
+// eslint-disable-next-line
+__webpack_public_path__ = OC.generateUrl(OC.linkTo('contacts', 'js'))
+
sync(store, router)
Vue.prototype.t = t