mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-10 11:54:40 +00:00
25 lines
460 B
HTML
25 lines
460 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<body>
|
|
<script type="application/javascript">
|
|
|
|
var port;
|
|
|
|
window.addEventListener('message', receiveMessage, false);
|
|
function receiveMessage(evt) {
|
|
port = evt.data.port;
|
|
|
|
port.addEventListener('message', receivePostMessage, false);
|
|
function receivePostMessage(evt) {
|
|
port.postMessage(evt.data);
|
|
}
|
|
port.start();
|
|
|
|
window.parent.postMessage({ status: "READY" }, '*');
|
|
}
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|