mirror of https://github.com/electron/electron
15 lines
374 B
HTML
15 lines
374 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.location.href === window.opener.location.href
|
|
}), '*');
|
|
});
|
|
window.opener.postMessage("ready", "*")
|
|
</script>
|
|
</body>
|
|
</html>
|