Clove IFrame Embed Code — View more at https://hub.clovecx.com/hc/a/Embed-Your-Customer-Hub-cade7a305d6c4a458921e7a947421f8e
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
<script type="text/javascript"> | |
if (window.top !== window.self) { | |
const msg = { | |
urlChange: { | |
pathname: window.location.pathname, | |
search: window.location.search, | |
href: window.location.href | |
} | |
} | |
window.top.postMessage(msg, '*') | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment