Skip to content

Commit 802dcae

Browse files
committed
PLUGINS-6316 fixed js error
1 parent 129c328 commit 802dcae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

includes/shortcodes/class-ecwid-shortcode-productbrowser.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ protected function get_js_for_switch_dynamic( $static_container_id, $dynamic_con
126126
?>
127127
<!--noptimize-->
128128
<script data-cfasync="false" data-no-optimize="1" type="text/javascript">
129+
window.ec = window.ec || {};
129130
window.ec.storefront = window.ec.storefront || {};
130131
window.ec.storefront.staticPages = window.ec.storefront.staticPages || Object();
131132

0 commit comments

Comments
 (0)