1// GPT Config Fix 2// Fixes the warning: "Ignoring the setConfig.singleRequest() call since the service is already enabled" 3 4(function() { 5 window.addEventListener('load', function() { 6 // Wait for GPT to be defined and loaded 7 const waitForGPT = setInterval(function() { 8 if (window.googletag && window.googletag.pubads) { 9 clearInterval(waitForGPT); 10 11 // Override the enableSingleRequest method to check if it's already enabled 12 const originalEnableSingleRequest = window.googletag.pubads().enableSingleRequest; 13 14 window.googletag.pubads().enableSingleRequest = function() { 15 // Check if singleRequest is already enabled 16 if (this._singleRequestEnabled) { 17 // Silent handling - no console output 18 return this; 19 } 20 21 // Mark as enabled and call original method 22 this._singleRequestEnabled = true; 23 return originalEnableSingleRequest.call(this); 24 }; 25 26 // Initialize the flag 27 window.googletag.pubads()._singleRequestEnabled = false; 28 } 29 }, 100); 30 }); 31})();
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.