You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
514 B
22 lines
514 B
|
4 months ago
|
<html>
|
||
|
|
<body>
|
||
|
|
<script>
|
||
|
|
window.addEventListener("message", (ev) => {
|
||
|
|
if (ev.data === "start") {
|
||
|
|
// send back a message to modify the prototype
|
||
|
|
parent.postMessage(
|
||
|
|
{
|
||
|
|
type: "SET",
|
||
|
|
value: { type: "RAW", value: "x" },
|
||
|
|
path: ["__proto__", "foo"],
|
||
|
|
},
|
||
|
|
"*"
|
||
|
|
);
|
||
|
|
parent.postMessage("done", "*");
|
||
|
|
}
|
||
|
|
});
|
||
|
|
parent.postMessage("ready", "*");
|
||
|
|
</script>
|
||
|
|
</body>
|
||
|
|
</html>
|