Source code
Revision control
Copy as Markdown
Other Tools
<script>
addEventListener("pageshow", ({ persisted }) => {
window.blockBFCache = new RTCPeerConnection();
bc.addEventListener("message", ({ data: { cmd, arg } }) => {
bc.close();
if (cmd == "load") {
location = arg;
} else if (cmd == "back") {
history.back();
}
}, { once: true });
bc.postMessage({ persisted });
});
</script>