1setTimeout(() => { 2 const geoLocationComponent = document.getElementById('geo-location-component') 3 const apiEndPoint = geoLocationComponent?.getAttribute('data-apiEndpoint'); 4 const currentPageURL = geoLocationComponent?.getAttribute('data-currentPageUrl'); 5 const siteLocale = geoLocationComponent?.getAttribute('data-sitelocale'); 6 let queryParams = window.location?.search || "?"; 7 if(queryParams.length > 1) {queryParams = queryParams.concat("&")} 8 queryParams = queryParams.concat(`currentPageURL=${currentPageURL}`) 9 queryParams = queryParams.concat("&") 10 queryParams = queryParams.concat(`siteLocaleVal=${siteLocale}`) 11 const endpoint = window.location.origin + apiEndPoint + queryParams; 12 13 fetch(endpoint) 14 .then((response) => response.json()) 15 .then((res) => { 16 if (res) { 17 const parsedDataRedirect = res; 18 if ( 19 parsedDataRedirect?.clientCountry === 'JP' && 20 parsedDataRedirect?.isGeneralPublicHomePage === 'true' 21 ) { 22 window.location.href = parsedDataRedirect?.redirectPath; 23 } 24 } 25 }); 26}, 100);
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.