Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html>
<head>
<title>Blob URL Partitioning Test</title>
</head>
<body>
<script>
onmessage = e => {
fetch(e.data)
.then(response => {
if (!response.ok) {
throw new Error();
}
return response.text();
})
.then(text => {
parent.postMessage(text, "*");
})
.catch(() => {
parent.postMessage("error", "*");
});
};
</script>
</body>
</html>