zz-shopify-components 0.15.1-beta.1 → 0.15.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zz-shopify-components",
3
- "version": "0.15.1-beta.1",
3
+ "version": "0.15.1-beta.2",
4
4
  "description": "Reusable Shopify components for theme projects",
5
5
  "keywords": [
6
6
  "shopify",
@@ -703,10 +703,14 @@
703
703
  const bannerlink = document.getElementById('{{ banner.id }}-bannerlink')
704
704
  const eventList = document.querySelectorAll('.{{ banner.id }}-site-event')
705
705
  if(button) {
706
+ {% if banner.settings.links != blank %}
706
707
  bindSiteJump(button, {{ banner.settings.links | json }})
708
+ {% endif %}
707
709
  }
708
710
  if(bannerlink) {
711
+ {% if banner.settings.linksbanner != blank %}
709
712
  bindSiteJump(bannerlink, {{ banner.settings.linksbanner | json }})
713
+ {% endif %}
710
714
  }
711
715
  console.log('eventList', eventList)
712
716
  if(eventList) {