wineater-bot 3.9.2 → 3.9.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/js/widget.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wineater-bot",
3
- "version": "3.9.2",
3
+ "version": "3.9.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "src/index.js",
package/src/js/widget.js CHANGED
@@ -134,7 +134,7 @@ export class WineWidget {
134
134
  resultsContainer.insertAdjacentHTML('beforeend', wineHTML);
135
135
  const currentCard = resultsContainer.children[index];
136
136
 
137
- if (!url) {
137
+ if (!url && this.widgetType === 'bar') {
138
138
  const buyBtn = currentCard.querySelector('[data-toggle-info]');
139
139
  const popup = currentCard.querySelector('.card-popup');
140
140
  const closeBtn = currentCard.querySelector('.card-popup-close');