mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 04:26:35 +02:00
Added method to display faked canvas content.
This commit is contained in:
parent
8cec88f5f7
commit
3cefcfe702
7 changed files with 64 additions and 11 deletions
|
@ -122,6 +122,12 @@ Promise.all([
|
|||
button.addEventListener("click", function(){actionsCallbacks[key](data);});
|
||||
actions.appendChild(button);
|
||||
});
|
||||
if (notification.dataURL){
|
||||
var button = document.createElement("button");
|
||||
button.textContent = browser.i18n.getMessage("inspectImage");
|
||||
button.addEventListener("click", function(){document.body.innerHTML = "<img src=" + notification.dataURL + ">";});
|
||||
actions.appendChild(button);
|
||||
}
|
||||
li.appendChild(actions);
|
||||
|
||||
ul.appendChild(li);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue