summaryrefslogtreecommitdiffstats
path: root/web_src/js/publicpath.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/publicpath.js')
-rw-r--r--web_src/js/publicpath.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web_src/js/publicpath.js b/web_src/js/publicpath.js
index 38865aa666..bfc81b8765 100644
--- a/web_src/js/publicpath.js
+++ b/web_src/js/publicpath.js
@@ -1,9 +1,9 @@
// This sets up the URL prefix used in webpack's chunk loading.
// This file must be imported before any lazy-loading is being attempted.
-const {StaticUrlPrefix} = window.config;
+const {AssetUrlPrefix} = window.config;
-if (StaticUrlPrefix) {
- __webpack_public_path__ = StaticUrlPrefix.endsWith('/') ? StaticUrlPrefix : `${StaticUrlPrefix}/`;
+if (AssetUrlPrefix) {
+ __webpack_public_path__ = AssetUrlPrefix.endsWith('/') ? AssetUrlPrefix : `${AssetUrlPrefix}/`;
} else {
const url = new URL(document.currentScript.src);
__webpack_public_path__ = url.pathname.replace(/\/[^/]*?\/[^/]*?$/, '/');