blob: 72b92c8061a995a27442fe071cb78d8af4a42261 [file] [log] [blame]
<!doctype html>
<script>
const params = new URL(window.location).searchParams;
const property = params.get("property");
try {
if (property === null) {
parent.location = "foo";
} else if (property === "reload") {
parent.location.reload();
} else if (property === "replace") {
parent.location.replace("foo");
} else {
parent.location[property] = "foo";
}
parent.parent.postMessage("success", "*");
} catch (e) {
parent.parent.postMessage(`error: ${e.name}`, "*");
}
</script>