-
-
Save jtsternberg/cef78148fb2ee16568b9212b5e0d4406 to your computer and use it in GitHub Desktop.
OptinMonster Dynamic Text Replacement API - hasCustomVariables
This file contains hidden or 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
<script type="text/javascript"> | |
document.addEventListener('om.Dtr.init', function(event) { | |
/** | |
* API method for checking whether there are any custom variables set. | |
* Must be accessed via the Dtr object. | |
* | |
* @return bool True if any custom variable has been registered, false otherwise. | |
*/ | |
event.detail.Dtr.hasCustomVariables(); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment