Skip to content

Commit 8e31b18

Browse files
authored
Merge pull request #347 from Ecwid/dev
PLUGINS-6316 fixed js error
2 parents 19a64cf + 802dcae commit 8e31b18

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)