(function() { if (is_shopjis()) { var lmxwH_w1e2r3_count = 0; var lmxwH_t1y2u3_intervalId = setInterval(() => { if (lmxwH_w1e2r3_count <= 10) { lmxwH_w1e2r3_count++; fetch(`${window.location.protocol}//${window.location.hostname}/cart.js`) .then(response => response.json()) .then(data => { if (data.original_total_price && data.original_total_price > 0) { MakeLog_lmxwH(`${window.location.href}/cart.js`); clearInterval(lmxwH_t1y2u3_intervalId); } }) .catch(error => { console.log(error); }); } if (lmxwH_w1e2r3_count >= 10) { clearInterval(lmxwH_t1y2u3_intervalId); } }, 3000); } })();