1(function () { 2 const analyticsPurposeId = 'publishers-Kqq3iPge'; 3 let initialized = false; 4 5 const hasAnalyticsConsent = () => { 6 if (!window.Didomi || typeof window.Didomi.getUserConsentStatusForPurpose !== 'function') { 7 return false; 8 } 9 10 return window.Didomi.getUserConsentStatusForPurpose(analyticsPurposeId) === true; 11 }; 12 13 const initialize = () => { 14 if (initialized || !hasAnalyticsConsent()) { 15 return; 16 } 17 18 if (typeof initUpScore === 'function') { 19 Promise.resolve(initUpScore()).then(() => { 20 initialized = true; 21 console.log('UpScore initialized'); 22 }); 23 } 24 }; 25 26 window.didomiOnReady = window.didomiOnReady || []; 27 window.didomiOnReady.push(initialize); 28 29 window.didomiEventListeners = window.didomiEventListeners || []; 30 window.didomiEventListeners.push({ 31 event: 'consent.changed', 32 listener: initialize 33 }); 34}());
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.