Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-12-03 17:12:18 +0300
committerJohn Molakvoæ <skjnldsv@protonmail.com>2022-01-08 12:14:53 +0300
commitdd7bf0f902570d4561c07237ea9072f4fc1d3edc (patch)
tree0116d397d454e95f1ebbd584230f16820c5ebd72 /apps/user_status
parent806a176a57526b55c18817577325509dfb4ef648 (diff)
Fix dynamic loading
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/user_status')
-rw-r--r--apps/user_status/src/dashboard.js6
-rw-r--r--apps/user_status/src/menu.js6
2 files changed, 1 insertions, 11 deletions
diff --git a/apps/user_status/src/dashboard.js b/apps/user_status/src/dashboard.js
index 8b85b695f77..f419003f34d 100644
--- a/apps/user_status/src/dashboard.js
+++ b/apps/user_status/src/dashboard.js
@@ -21,17 +21,13 @@
*/
import Vue from 'vue'
-import { generateFilePath } from '@nextcloud/router'
import { getRequestToken } from '@nextcloud/auth'
import { translate, translatePlural } from '@nextcloud/l10n'
import Dashboard from './views/Dashboard'
-// eslint-disable-next-line
+// eslint-disable-next-line camelcase
__webpack_nonce__ = btoa(getRequestToken())
-// eslint-disable-next-line
-__webpack_public_path__ = generateFilePath('user_status', '', 'js/')
-
Vue.prototype.t = translate
Vue.prototype.n = translatePlural
Vue.prototype.OC = OC
diff --git a/apps/user_status/src/menu.js b/apps/user_status/src/menu.js
index be10d700f08..3c29f61cc0c 100644
--- a/apps/user_status/src/menu.js
+++ b/apps/user_status/src/menu.js
@@ -31,12 +31,6 @@ import Avatar from '@nextcloud/vue/dist/Components/Avatar'
// eslint-disable-next-line camelcase
__webpack_nonce__ = btoa(getRequestToken())
-// 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.linkTo('user_status', 'js/')
-
Vue.prototype.t = t
Vue.prototype.$t = t