blob: 67b3ad5a600bdaf201953cc18b9687e9314673a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<!DOCTYPE html>
<meta charset="utf-8">
<script>
fetch('html-correctly-labeled.html')
.then(response => response.blob())
.then(blob => {
let msg = { blob_size: blob.size,
blob_type: blob.type,
blob_url: URL.createObjectURL(blob) };
window.parent.postMessage(msg, '*');
})
.catch(error => {
let msg = { error: error };
window.parent.postMessage(msg, '*');
});
</script>
|