Last active
June 5, 2017 15:25
-
-
Save gashupl/3762bd8761666d9bcd8909524a5af249 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
window.addEventListener("message", receiveMessage, false); | |
function receiveMessage(event) { | |
if (event.origin !== "http://my.source.com"){ | |
return; | |
} | |
// Kod obsługujący odebrany komunikat. | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment