PageSourceSearch

https://knyamed.com/cdn/shop/t/571/assets/geo-redirect.js?v=89487755745242593861787134041

js knyamed.com collected 2026-10-01 11:54:08 UTC 1,554 bytes, 2 lines download raw bytes

1(()=>{"use strict";const STORAGE_KEY="geoRedirectHandled",UAE_STORE_URL="https://knyamed.global/";async function getVisitorCountry(){try{const response=await fetch(`${window.location.origin}/browsing_context_suggestions.json`,{credentials:"same-origin"});if(!response.ok)return null;const handle=(await response.json())?.detected_values?.country?.handle;return typeof handle=="string"?handle.toUpperCase():null}catch(error){return console.warn("[geo-redirect] Failed to detect country:",error),null}}async function initGeoRedirect(){if(sessionStorage.getItem(STORAGE_KEY)==="true")return;const banner=document.getElementById("geo-redirect-banner");if(!banner)return;const yesBtn=banner.querySelector("[data-geo-redirect-yes]"),noBtn=banner.querySelector("[data-geo-redirect-no]"),storeLink=banner.querySelector("[data-geo-redirect-link]"),markHandled=()=>sessionStorage.setItem(STORAGE_KEY,"true"),hideBanner=()=>{banner.classList.remove("is-visible"),banner.hidden=!0},redirectToUAEStore=()=>{markHandled(),window.location.href=UAE_STORE_URL};yesBtn?.addEventListener("click",redirectToUAEStore),noBtn?.addEventListener("click",()=>{markHandled(),hideBanner()}),storeLink?.addEventListener("click",event=>{event.preventDefault(),redirectToUAEStore()}),await getVisitorCountry()==="AE"&&(banner.hidden=!1,banner.classList.add("is-visible"))}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",initGeoRedirect):initGeoRedirect()})();
2//# sourceMappingURL=/cdn/shop/t/571/assets/geo-redirect.js.map?v=89487755745242593861787134041

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.