1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 04:40:20 +01:00

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

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;