summaryrefslogtreecommitdiffstats
path: root/src/main.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-09-07 15:54:34 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-09-07 15:54:34 +0200
commit1d1b7a099e15c3ae9793447c41ae2998e4e49930 (patch)
tree840dd292d80f96b95a925aa1a8f16bbcf212ad3d /src/main.js
parentfe39950e380cf42fb9f0d2516da3ae3d0493068e (diff)
Root detection fixes and locale loading fix
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
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