mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 04:26:35 +02:00
canvas content was not stored to be displayed when wanted
This commit is contained in:
parent
5e5011f208
commit
f05717836d
2 changed files with 6 additions and 5 deletions
|
@ -181,15 +181,15 @@
|
|||
scope.intercept = function intercept({subject: window}, {check, checkStack, ask, notify, prefs}){
|
||||
function getDataURL(object, prefs){
|
||||
return (
|
||||
this &&
|
||||
object &&
|
||||
prefs("storeImageForInspection") &&
|
||||
prefs("showNotifications")?
|
||||
(
|
||||
this instanceof HTMLCanvasElement?
|
||||
this.toDataURL():
|
||||
object instanceof HTMLCanvasElement?
|
||||
object.toDataURL():
|
||||
(
|
||||
this.canvas instanceof HTMLCanvasElement?
|
||||
this.canvas.toDataURL():
|
||||
object.canvas instanceof HTMLCanvasElement?
|
||||
object.canvas.toDataURL():
|
||||
false
|
||||
)
|
||||
):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue