Home / Admin / hascustomvariables.js
Duplicate Snippet

Embed Snippet on Your Site

hascustomvariables.js

Code Preview
html
<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>

Comments

Add a Comment