1/** 2 * Captures the visitor's IANA timezone (e.g. "Europe/Helsinki") and stores it 3 * in a cookie so server-side payment availability checks can read it. 4 * 5 * The timezone is only available in the browser, so this runs on every 6 * front-end page to make sure the cookie is set before the customer reaches 7 * checkout. 8 */ 9(function () { 10 'use strict'; 11 12 try { 13 var timezone = Intl.DateTimeFormat().resolvedOptions().timeZone; 14 15 if (!timezone) { 16 return; 17 } 18 19 var cookieValue = encodeURIComponent(timezone); 20 21 // Skip writing if the cookie already holds the same value. 22 if (document.cookie.indexOf('montonio_tz=' + cookieValue) !== -1) { 23 return; 24 } 25 26 document.cookie = 'montonio_tz=' + cookieValue + '; path=/; max-age=' + (60 * 60 * 24 * 30) + '; SameSite=Lax'; 27 } catch (e) { 28 // Intl unavailable or blocked â leave the cookie unset. 29 } 30})();
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.