Skip to content

Commit

Permalink
Fix mironet extension
Browse files Browse the repository at this point in the history
  • Loading branch information
rarous committed Nov 13, 2023
1 parent c966ee5 commit f4e4d26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extension/shops/mironet.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { cleanPrice, registerShop } from "../helpers.mjs";
import { Shop } from "./shop.mjs";

export class Mironet extends Shop {
selector = ".product_btn_kosik";
selector = ".product_nakupni_udaje";
get injectionPoint() {
return ["afterend", this.selector];
}
Expand All @@ -12,8 +12,8 @@ export class Mironet extends Shop {
if (!elem) return;
const itemId = elem.querySelector("input[name=Code]").value;
const title = elem.querySelector("input[name=NameItem]").value;
const currentPrice = cleanPrice(".product_cena_box .product_dph");
const originalPrice = cleanPrice(".fakcbox23 .product_dph span");
const currentPrice = cleanPrice(".product_nakupni_udaje .product_dph");
const originalPrice = cleanPrice(".product_nakupni_udaje .product_oldprice");
const imageUrl = document.getElementById("DetailImg").src;

return { itemId, title, currentPrice, originalPrice, imageUrl };
Expand Down

0 comments on commit f4e4d26

Please sign in to comment.