mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-05-29 09:28:06 +02:00
canvas content was not stored to be displayed when wanted
This commit is contained in:
parent
5e5011f208
commit
f05717836d
|
@ -181,15 +181,15 @@
|
||||||
scope.intercept = function intercept({subject: window}, {check, checkStack, ask, notify, prefs}){
|
scope.intercept = function intercept({subject: window}, {check, checkStack, ask, notify, prefs}){
|
||||||
function getDataURL(object, prefs){
|
function getDataURL(object, prefs){
|
||||||
return (
|
return (
|
||||||
this &&
|
object &&
|
||||||
prefs("storeImageForInspection") &&
|
prefs("storeImageForInspection") &&
|
||||||
prefs("showNotifications")?
|
prefs("showNotifications")?
|
||||||
(
|
(
|
||||||
this instanceof HTMLCanvasElement?
|
object instanceof HTMLCanvasElement?
|
||||||
this.toDataURL():
|
object.toDataURL():
|
||||||
(
|
(
|
||||||
this.canvas instanceof HTMLCanvasElement?
|
object.canvas instanceof HTMLCanvasElement?
|
||||||
this.canvas.toDataURL():
|
object.canvas.toDataURL():
|
||||||
false
|
false
|
||||||
)
|
)
|
||||||
):
|
):
|
||||||
|
|
|
@ -10,6 +10,7 @@ Version 0.5.4:
|
||||||
|
|
||||||
fixes:
|
fixes:
|
||||||
- window and audio API were always blocked when using any of the "block ..." modes
|
- window and audio API were always blocked when using any of the "block ..." modes
|
||||||
|
- canvas content was not stored to be displayed when wanted
|
||||||
|
|
||||||
known issues:
|
known issues:
|
||||||
- if a data URL is blocked the page action button does not appear
|
- if a data URL is blocked the page action button does not appear
|
||||||
|
|
Loading…
Reference in New Issue
Block a user