From ab19ebd2c6dcf841a2a56050fc69f41cb1404b40 Mon Sep 17 00:00:00 2001 From: kkapsner Date: Thu, 4 Jan 2018 13:30:48 +0100 Subject: [PATCH] Enable asking in iframes --- lib/askForPermission.js | 2 +- releaseNotes.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/askForPermission.js b/lib/askForPermission.js index c4624cb..03ec567 100644 --- a/lib/askForPermission.js +++ b/lib/askForPermission.js @@ -136,7 +136,7 @@ if (prefs("showCallingFile")){ msg += parseErrorStack(errorStack).toString(_); } - answer = window.confirm(msg)? "allow": prefs("askDenyMode"); + answer = window.top.confirm(msg)? "allow": prefs("askDenyMode"); if (prefs("askOnlyOnce") === "combined"){ ["context", "readout", "input"].forEach(function(type){ diff --git a/releaseNotes.txt b/releaseNotes.txt index 8971627..78dc76d 100644 --- a/releaseNotes.txt +++ b/releaseNotes.txt @@ -7,6 +7,7 @@ Version 0.4.5: fixes: - prevent possible double faking + - asking did not work in some cases (auto deny) Version 0.4.4b: known issues: