blob: 6baf47b193919b097c44719c3acb2f9084dbe357 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<!doctype html>
<script src="/resources/channel.sub.js"></script>
<script>
function handleMessage(msg) {
// We expect the message to be a SendChannel
respChannel = msg;
respChannel.send("PASS");
}
let channel = global_channel();
channel.addMessageHandler(handleMessage);
channel.connect();
</script>
|