Skip to content

Commit c6379bc

Browse files
committed
Add todo
1 parent f157ce0 commit c6379bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

view/frontend/templates/script/variables.phtml

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

0 commit comments

Comments
 (0)