This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var __dispatched__ = {}; //Map of previously dispatched preference levels | |
/* First step is to register with the CM API to recieve callbacks when a preference update occurs | |
You must wait for the CM API (PrivacyManagerAPI object) to exist on the page before registering | |
*/ | |
var __i__ = self.postMessage && setInterval(function(){ | |
if(self.PrivacyManagerAPI && __i__){ | |
var apiObject = { PrivacyManagerAPI: | |
{ action:"getConsentDecision", | |
timestamp: new Date().getTime(), |