<!doctype HTML> | |
<div id="container"></div> | |
<script> | |
var img = new Image(); | |
img.src = '/resources/square100.png'; | |
img.decode().then(function() { | |
document.getElementById("container").appendChild(img); | |
window.parent.postMessage("pass", "*"); | |
}, function() { | |
window.parent.postMessage("fail", "*"); | |
}); | |
</script> |