Home / Admin / deletecustomvariable.js
Duplicate Snippet

Embed Snippet on Your Site

deletecustomvariable.js

Code Preview
html
<script type="text/javascript">
	document.addEventListener('om.Dtr.init', function(event) {
		/**
		 * API method for deleting a custom variable. Must be accessed via the Dtr object.
		 *
		 * @param string $key The custom variable to delete.
		 * @return null
		 */
		event.detail.Dtr.deleteCustomVariable('foo');
	});
</script>

Comments

Add a Comment