зеркало из https://github.com/mozilla/gecko-dev.git
24 строки
449 B
HTML
24 строки
449 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<body>
|
|
<script type="application/javascript">
|
|
|
|
var port;
|
|
|
|
window.addEventListener('message', receiveMessage);
|
|
function receiveMessage(evt) {
|
|
port = evt.data.port;
|
|
|
|
port.addEventListener('message', receivePostMessage);
|
|
function receivePostMessage(event) {
|
|
port.postMessage(event.data);
|
|
}
|
|
port.start();
|
|
|
|
window.parent.postMessage({ status: "READY" }, '*');
|
|
}
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|