mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-22 14:16:19 +00:00
fixup! carrefour
This commit is contained in:
parent
f85c74a7bc
commit
7b989f0ea0
1 changed files with 4 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue