Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<html>
<script>
onload = function() {
function done(success) {
var bc = new BroadcastChannel("test_channel");
bc.postMessage({success});
bc.close();
}
try {
done(true); // no hang!
} catch (e) {
done(false);
}
}
</script>
</html>