blob: 2c5572b77493367aae1dc35c88b4713fdc47f352 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<!DOCTYPE html>
<title>Incumbent page used as a test helper</title>
<iframe src="../current/current.html" id="current"></iframe>
<script>
const current = document.querySelector("#current").contentWindow;
window.hello = () => {
window.ws = new current.WebSocket('foo');
ws.close();
};
</script>
|