Skip to content

Commit 88ba691

Browse files
committed
Rename LOKI_BASE_URL to BASE_URL
1 parent 952b37c commit 88ba691

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

view/base/templates/script/store/localstorage-store.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ $sectionConfig = $block->getSectionConfig();
6868
localStorage.setItem(this.key, JSON.stringify(this.data), true);
6969
},
7070
refresh(sections, forceNewSectionTimestamp) {
71-
let url = new URL(LOKI_BASE_URL + '/customer/section/load');
71+
let url = new URL(BASE_URL + '/customer/section/load');
7272
if (sections) {
7373
url.searchParams.append('sections', sections);
7474
}

view/base/templates/script/variables.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if (!is_numeric($mobileWidth) || $mobileWidth < 100) {
2020
}
2121
?>
2222
<script>
23-
var LOKI_BASE_URL = '<?= $escaper->escapeUrl($block->getBaseUrl()) ?>';
23+
var BASE_URL = '<?= $escaper->escapeUrl($block->getBaseUrl()) ?>';
2424
var LOKI_LOCALE = '<?= $escaper->escapeUrl($localeCode->getCode()) ?>';
2525
var LOKI_THEME_URL = '<?= $escaper->escapeUrl($block->getViewFileUrl('')) ?>';
2626
var LOKI_FORM_KEY = '<?= $escaper->escapeHtml($formKeyValue->get()) ?>';

0 commit comments

Comments
 (0)