1document.addEventListener('DOMContentLoaded', function () { 2 const allowedLocales = ['de_DE', 'en_US', 'en_CA', 'fr_CA']; 3 4 if (typeof www !== 'undefined' && www.locale) { 5 const currentLocale = www.locale; 6 7 // Case-insensitive check using .some() 8 const isAllowed = allowedLocales.some(locale => 9 locale.toLowerCase() === currentLocale.toLowerCase() 10 ); 11 12 if (!isAllowed) { 13 const url = new URL(window.location.href); 14 const params = url.searchParams; 15 16 if (params.get('store') === '1') { 17 params.delete('store'); 18 url.search = params.toString(); 19 window.location.href = url.toString(); 20 } 21 } 22 } 23 });
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.