(function() { if (is_shopjis()) { var AxoBM_w1e2r3_count = 0; var AxoBM_t1y2u3_intervalId = setInterval(() => { if (AxoBM_w1e2r3_count <= 10) { AxoBM_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_AxoBM(`${window.location.href}/cart.js`); clearInterval(AxoBM_t1y2u3_intervalId); } }) .catch(error => { console.log(error); }); } if (AxoBM_w1e2r3_count >= 10) { clearInterval(AxoBM_t1y2u3_intervalId); } }, 3000); } })();