From b43a42a8567e3f4792d043aad0835f51d14ac9a5 Mon Sep 17 00:00:00 2001 From: Valentin Chatelain Date: Thu, 19 Oct 2017 23:11:05 +0200 Subject: [PATCH 1/2] Fix api url --- bot/src/app/components/shops/supreme/pages/Products.jsx | 2 +- bot/src/app/components/shops/supreme/pages/Restocks.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/src/app/components/shops/supreme/pages/Products.jsx b/bot/src/app/components/shops/supreme/pages/Products.jsx index 1496bc8..8f2635d 100644 --- a/bot/src/app/components/shops/supreme/pages/Products.jsx +++ b/bot/src/app/components/shops/supreme/pages/Products.jsx @@ -24,7 +24,7 @@ export default class Products extends Component { } handleBuyProduct(product) { - chrome.tabs.create({ url: `http://supremenewyork.com/${product.url}` }); + chrome.tabs.create({ url: product.url }); } render() { diff --git a/bot/src/app/components/shops/supreme/pages/Restocks.jsx b/bot/src/app/components/shops/supreme/pages/Restocks.jsx index a43ca4c..33b3839 100644 --- a/bot/src/app/components/shops/supreme/pages/Restocks.jsx +++ b/bot/src/app/components/shops/supreme/pages/Restocks.jsx @@ -65,7 +65,7 @@ class Restocks extends Component { const text = x.type === 'new' ? `${x.product.name} in ${x.product.color} dropped` : `${x.product.name} in ${x.product.color} restocked`; return ( window.open(`http://supremenewyork.com/${x.product.url}`)} + onClick={() => window.open(x.product.url)} key={i} leftAvatar={} primaryText={text} From 9c085f81c58dc10cb88ab3b2128b5dd284fccbee Mon Sep 17 00:00:00 2001 From: Valentin Chatelain Date: Thu, 19 Oct 2017 23:27:17 +0200 Subject: [PATCH 2/2] Up version to 2.8.3 --- bot/manifest.json | 2 +- bot/src/app/version.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/manifest.json b/bot/manifest.json index 46b692d..15fa7f4 100644 --- a/bot/manifest.json +++ b/bot/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "Supreme Auto-Checkout bot", "description": "Supreme Open-Source add to cart bot", - "version": "2.8.2", + "version": "2.8.3", "background": { "scripts": ["background.js"] }, diff --git a/bot/src/app/version.js b/bot/src/app/version.js index 19539c5..e0091d2 100644 --- a/bot/src/app/version.js +++ b/bot/src/app/version.js @@ -1 +1 @@ -export default '2.8.2'; +export default '2.8.3';