mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 05:17:35 +00:00
refactor: move cartUrl from Store to Link (#87)
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user