remove _
This commit is contained in:
@@ -132,6 +132,8 @@ function openModal(productHref) {
|
||||
price = parts[parts.length - 1] || "0";
|
||||
}
|
||||
|
||||
product = product.replace(/_/g, "");
|
||||
|
||||
modal.querySelector('input[name="product"]').value = product;
|
||||
modal.querySelector('input[name="price"]').value = price;
|
||||
modal.querySelector("#productText").textContent = `You will buy ${product} for $${price}.`;
|
||||
|
||||
Reference in New Issue
Block a user