PageSourceSearch

https://ooni.com/cdn/shop/t/621/assets/__vite-env-sync.C1gfgl-o.js

js ooni.com collected 2026-09-24 09:08:02 UTC 859 bytes, 1 lines download raw bytes

1const c=async(e=!1)=>{var i,s,n,r,d;const t="_shopify_preview_synced";e&&sessionStorage.removeItem(t);const w=((s=(i=window.Shopify)==null?void 0:i.theme)==null?void 0:s.role)==="unpublished"||window.location.search.includes("preview_theme_id"),f=!!((n=window.Shopify)!=null&&n.designMode),o=w||f;if(sessionStorage.getItem(t)!==(o?"true":"false"))try{await fetch(`${((d=(r=window.Shopify)==null?void 0:r.routes)==null?void 0:d.root)||"/"}cart/update.js`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({attributes:{preview_theme:o?"true":"false"}})}),sessionStorage.setItem(t,o?"true":"false")}catch(p){console.error("[EnvSync] Update failed",p)}};c();var a;if((a=window.Shopify)!=null&&a.previewMode){const e=()=>c(!0);document.addEventListener("shopify:section:load",e),document.addEventListener("shopify:section:reorder",e)}

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.