PageSourceSearch

https://grailwatch.com/cdn/shop/t/83/assets/custom.js?v=16970173142857973221727424964

js grailwatch.com collected 2026-10-07 11:35:45 UTC 1,479 bytes, 2 lines download raw bytes

1document.addEventListener("DOMContentLoaded",function(){const headerCurrencySelector=document.getElementById("header-accentuate-currency-selector"),sidebarCurrencySelector=document.getElementById("sidebar-accentuate-currency-selector");fetch("/cart.js").then(response=>{if(response.ok)return response.json();throw new Error("Network response was not ok.")}).then(data=>{const preferredCurrency=data.attributes.preferred_currency||"USD";headerCurrencySelector.value=preferredCurrency,sidebarCurrencySelector.value=preferredCurrency}).catch(error=>{console.error("Error fetching cart:",error)}),headerCurrencySelector.addEventListener("change",function(event){const selectedCurrency=event.target.value;updateCartCurrencyAttribute(selectedCurrency)}),sidebarCurrencySelector.addEventListener("change",function(event){const selectedCurrency=event.target.value;updateCartCurrencyAttribute(selectedCurrency)});function updateCartCurrencyAttribute(currency){fetch("/cart/update.js",{method:"POST",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify({attributes:{preferred_currency:currency}})}).then(response=>{if(response.ok)return response.json();throw new Error("Network response was not ok.")}).then(data=>{console.log("Cart attribute updated:",data),location.reload()}).catch(error=>{console.error("Error updating cart attribute:",error)})}});
2//# sourceMappingURL=/cdn/shop/t/83/assets/custom.js.map?v=16970173142857973221727424964

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.