PageSourceSearch

https://zyn.ca/cdn/shop/t/195/assets/protection-checker.js?v=31499585321353318391768586452

js zyn.ca collected 2026-10-03 20:37:10 UTC 1,148 bytes, 2 lines download raw bytes

1window.addEventListener("DOMContentLoaded",()=>{fetch("/cart.js").then(obj=>obj.json()).then(cart=>{let protectionVariantId=null,giftBagInCart=!1;if(cart.items.forEach(item=>{item.handle.includes("zyn-shipping-protection")&&(protectionVariantId=item.variant_id),item.handle.includes("gift-bag")&&(giftBagInCart=!0)}),protectionVariantId){const removeRequest={method:"POST",headers:{"Content-Type":"application/json;",Accept:"application/json"},body:JSON.stringify({id:String(protectionVariantId),quantity:0})};fetch("/cart/change.js",removeRequest).then(response=>response.json()).then(data=>{console.log("Removed protection:",data)}).then(()=>{console.log("Attribute cleared"),window.location.reload()})}else giftBagInCart||($("#giftAttribute").prop("checked",!1),sessionStorage.setItem("checkboxState","unchecked"));fetch("/cart/update.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({attributes:{shipping_protection_choice:null}})})}).catch(error=>console.error("Error:",error))});
2//# sourceMappingURL=/cdn/shop/t/195/assets/protection-checker.js.map?v=31499585321353318391768586452

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.