From f05717836dd46ba9972661b39ce8c3e1404292c5 Mon Sep 17 00:00:00 2001 From: kkapsner Date: Tue, 11 Sep 2018 23:56:44 +0200 Subject: [PATCH] canvas content was not stored to be displayed when wanted --- lib/intercept.js | 10 +++++----- releaseNotes.txt | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/intercept.js b/lib/intercept.js index 64d51b3..605b220 100644 --- a/lib/intercept.js +++ b/lib/intercept.js @@ -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 ) ): diff --git a/releaseNotes.txt b/releaseNotes.txt index dfdbc70..aa616c5 100644 --- a/releaseNotes.txt +++ b/releaseNotes.txt @@ -10,6 +10,7 @@ Version 0.5.4: fixes: - 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: - if a data URL is blocked the page action button does not appear