mirror of
https://github.com/electron/electron.git
synced 2026-01-29 17:28:18 -05:00
14 lines
304 B
HTML
14 lines
304 B
HTML
<html>
|
|
<body>
|
|
<script type="text/javascript" charset="utf-8">
|
|
window.addEventListener('message', function (e) {
|
|
window.opener.postMessage(JSON.stringify({
|
|
origin: e.origin,
|
|
data: e.data,
|
|
sourceEqualsOpener: e.source === window.opener
|
|
}), '*');
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|