blob: 21dfc5eb8d06636ee729687904cbecf569c16b71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Page broadcast channel creator for first party isolation</title>
</head>
<body>
<div id="display" style="white-space:pre; font-family:monospace; display:inline;"></div>
<iframe id="iframe" src="file_broadcastChanneliFrame.html"></iframe>>
<script type="text/javascript">
let bc = new BroadcastChannel("testBroadcastChannel");
bc.onmessage = function(e) {
// eslint-disable-next-line no-unsanitized/property
document.getElementById("display").innerHTML = e.data;
};
</script>
</body>
|