Skip to content

Commit 21d9ba9

Browse files
committed
Use new LOKI_THEME_URL variable in JS
1 parent 423083d commit 21d9ba9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

view/base/templates/script/variables.phtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ if (!is_numeric($mobileWidth) || $mobileWidth < 100) {
1818
?>
1919
<script>
2020
var LOKI_BASE_URL = '<?= $escaper->escapeUrl($block->getBaseUrl()) ?>';
21+
var LOKI_THEME_URL = '<?= $escaper->escapeUrl($block->getViewFileUrl('')) ?>';
2122
var LOKI_FORM_KEY = '<?= $escaper->escapeHtml($formKeyValue->get()) ?>';
2223
var LOKI_CURRENT_URL = window.location.href.split('?')[0];
2324
var LOKI_IS_MOBILE = ((window.innerWidth > 0) ? window.innerWidth : screen.width) < <?= (int)$mobileWidth ?>; // @todo: What happens if you change browser width on the fly?

0 commit comments

Comments
 (0)