diff --git a/PrinterPiExtension/js/background.js b/PrinterPiExtension/js/background.js index 53c9f0c..9e9a782 100644 --- a/PrinterPiExtension/js/background.js +++ b/PrinterPiExtension/js/background.js @@ -19,7 +19,7 @@ try { //Try eBay let address = document.querySelector("#shipToAddress").innerText; - let shipping = document.querySelectorAll(".BuyerPurchaseDetails--1nhS6")[3].children[1].innerText; + let shipping = document.querySelectorAll(".BuyerPurchaseDetails--1nhS6")[3].children[1].innerText; shipping = parseFloat(shipping.substring(shipping.indexOf("$")+1)); //Shipping as a float let grandTotal = document.querySelectorAll(".BuyerPurchaseDetails--1nhS6")[2].children[1].innerText; //Shipping+items+tax grandTotal = parseFloat(grandTotal.substring(grandTotal.indexOf("$")+1)); @@ -28,12 +28,13 @@ let item_arr = []; for (let i=0; i