Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- (function() {
- var waitPageTriggerCookie = setInterval(function() {
- var nativeCouponeInput = document.querySelector('#coupon_code');
- var adoricCouponValue = window.localStorage.getItem('adoricCouponValue');
- if (nativeCouponeInput && adoricCouponValue) {
- clearInterval(waitPageTriggerCookie);
- nativeCouponeInput.value = adoricCouponValue;
- window.localStorage.removeItem('adoricCouponValue');
- }
- }, 1000);
- setTimeout(function() {
- clearInterval(waitPageTriggerCookie);
- }, 10000);
- })();
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement