Last active
March 27, 2019 15:29
-
-
Save CezaryDanielNowak/609024fcc3fa1d08f0eece8333de9492 to your computer and use it in GitHub Desktop.
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
var origin = document.referrer.replace(/^((\w+:)?\/\/[^\/]+\/?).*$/,'$1').replace(/\/$/, ''); | |
try { | |
parent.postMessage('pardot_form_success', origin); | |
} catch (e) { | |
window.console && window.console.log(e); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With whitelisting