diff --git a/page/notifications.js b/page/notifications.js index 3be12c7..a8e777b 100644 --- a/page/notifications.js +++ b/page/notifications.js @@ -319,7 +319,7 @@ function addItem(data) { if (Settings.get("general.searchOpenModal") && is_parent_asin != null && enrollment_guid != null) { Tpl.setVar( "url", - `https://www.amazon.${vineDomain}/vine/vine-items?queue=encore#openModal;${asin};${queue};${is_parent_asin};${enrollment_guid}` + `https://www.amazon.${vineDomain}/vine/vine-items?queue=encore#openModal;${asin};${queue};${is_parent_asin ? "true" : "false"};${enrollment_guid}` ); } else { Tpl.setVar("url", `https://www.amazon.${vineDomain}/vine/vine-items?search=${search}`); diff --git a/scripts/bootloader.js b/scripts/bootloader.js index d343f43..2568343 100644 --- a/scripts/bootloader.js +++ b/scripts/bootloader.js @@ -1029,7 +1029,7 @@ browser.runtime.onMessage.addListener(async function (message, sender, sendRespo if (Settings.get("general.searchOpenModal") && is_parent_asin != null && enrollment_guid != null) { Tpl.setVar( "url", - `https://www.amazon.${vineDomain}/vine/vine-items?queue=encore#openModal;${asin};${queue};${is_parent_asin};${enrollment_guid}` + `https://www.amazon.${vineDomain}/vine/vine-items?queue=encore#openModal;${asin};${queue};${is_parent_asin ? "true" : "false"};${enrollment_guid}` ); } else { Tpl.setVar("url", `https://www.amazon.${vineDomain}/vine/vine-items?search=${search}`); diff --git a/scripts/vh_service_worker.js b/scripts/vh_service_worker.js index ff8c567..4aa6ae1 100644 --- a/scripts/vh_service_worker.js +++ b/scripts/vh_service_worker.js @@ -145,7 +145,7 @@ chrome.notifications.onClicked.addListener((notificationId) => { const { asin, queue, is_parent_asin, enrollment_guid, search } = notificationsData[notificationId]; if (Settings.get("general.searchOpenModal") && is_parent_asin != null && enrollment_guid != null) { chrome.tabs.create({ - url: `https://www.amazon.${vineDomain}/vine/vine-items?queue=encore#openModal;${asin};${queue};${is_parent_asin};${enrollment_guid}`, + url: `https://www.amazon.${vineDomain}/vine/vine-items?queue=encore#openModal;${asin};${queue};${is_parent_asin ? "true" : "false"};${enrollment_guid}`, }); } else { chrome.tabs.create({