feat: update for complex add to cart, fix nvidia (#108)

This commit is contained in:
fuckingrobot
2020-09-21 08:24:20 -04:00
committed by GitHub
parent 722eaf3cd6
commit 3ea146da14
4 changed files with 99 additions and 12 deletions
+5 -1
View File
@@ -91,7 +91,11 @@ async function lookup(browser: Browser, store: Store) {
const givenUrl = link.cartUrl ? link.cartUrl : link.url;
if (Config.browser.open) {
await open(givenUrl);
if (link.openCartAction === undefined) {
await open(givenUrl);
} else {
link.openCartAction(browser);
}
}
sendNotification(givenUrl, link);