1(function () { 2 document.addEventListener("wp_listen_for_consent_change", function (e) { 3 var changedConsentCategory = e.detail; 4 for (var key in changedConsentCategory) { 5 if (changedConsentCategory.hasOwnProperty(key)) { 6 if (key === 'marketing') { 7 if (changedConsentCategory[key] === 'allow') { 8 window.uetq = window.uetq || []; 9 window.uetq.push('consent', 'update', { 10 'ad_storage': 'granted' 11 }); 12 } else { 13 window.uetq = window.uetq || []; 14 window.uetq.push('consent', 'update', { 15 'ad_storage': 'denied' 16 }); 17 } 18 } 19 } 20 } 21 }); 22 if (wp_has_consent('marketing')) { 23 window.uetq = window.uetq || []; 24 window.uetq.push('consent', 'update', { 25 'ad_storage': 'granted' 26 }); 27 } 28})();
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.