Fixed image inspecting which was not working sometimes.

This commit is contained in:
kkapsner 2017-09-23 22:51:01 +02:00
parent 26176b50f8
commit 1a73fc90e4
1 changed files with 4 additions and 1 deletions

View File

@ -55,7 +55,10 @@ Promise.all([
alert(parseErrorStack(errorStack));
},
inspectImage: function({dataURL}){
document.body.innerHTML = "<img src=" + dataURL + ">";
document.body.innerHTML = "";
var img = document.createElement("img");
img.src = dataURL;
document.body.appendChild(img);
},
ignorelistDomain: function({url}){
var domain = url.host;