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