Skip to content

Commit 10606e4

Browse files
authored
Update js_code.phtml
1 parent cb4d146 commit 10606e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

view/frontend/templates/js_code.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ if (!isset($escaper)) {
126126
mfLoadGtm();
127127
<?php } ?>
128128

129-
if (!window.MagefanRocketJsCustomOptimization)
129+
if (!window.MagefanRocketJsCustomOptimization && window.require)
130130
require(['jquery', 'Magento_Customer/js/customer-data'], function ($, customer) {
131131
function updateMfGtmCustomerIdentifier(data) {
132132
if (data.mf_gtm_customer_identifier) {

0 commit comments

Comments
 (0)