Skip to content

Instantly share code, notes, and snippets.

@sb8244
Last active Feb 18, 2022
Embed
What would you like to do?
<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