OLD | NEW |
---|---|
(Empty) | |
1 <script> | |
2 // Respond to any message by sending the messenger back with the document's | |
3 // origin. | |
4 window.addEventListener('message', function (e) { | |
5 event.source.postMessage({ | |
6 'origin': document.origin, | |
7 'id': e.data.id | |
8 }, e.origin); | |
9 }); | |
10 </script> | |
OLD | NEW |