refactor: move cartUrl from Store to Link (#87)

This commit is contained in:
George
2020-09-19 19:49:09 -07:00
committed by GitHub
parent 381f1f7505
commit 1e9d8fec42
3 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ export async function lookup(browser: puppeteer.Browser, store: Store) {
await page.screenshot({path: `success-${Date.now()}.png`});
}
const givenUrl = store.cartUrl ? store.cartUrl : link.url;
const givenUrl = link.cartUrl ? link.cartUrl : link.url;
if (Config.openBrowser === 'true') {
await open(givenUrl);