fixup! carrefour

This commit is contained in:
Cat /dev/Nulo 2024-01-01 16:50:00 -03:00
parent f85c74a7bc
commit 7b989f0ea0

View file

@ -12,6 +12,10 @@ export function priceFromMeta(dom: Window) {
const precioCentavos = parseFloat(precioMeta) * 100;
return precioCentavos;
}
export function stockFromMeta(dom: Window) {
const stockMeta = getMetaProp(dom, "product:availability");
return stockMeta === "instock";
}
function parseJsonLds(dom: Window): object[] {
const scripts = dom.window.document.querySelectorAll(