From a65855a587360de4000a42623309408e82fb2bb8 Mon Sep 17 00:00:00 2001 From: kkapsner Date: Fri, 13 Jul 2018 16:59:49 +0200 Subject: [PATCH] Show page action when blocking Fixes #207 --- _locales/de/messages.json | 4 ++++ _locales/en/messages.json | 4 ++++ lib/modifiedAPIFunctions.js | 1 + releaseNotes.txt | 1 + 4 files changed, 10 insertions(+) diff --git a/_locales/de/messages.json b/_locales/de/messages.json index 05a5624..0a59a72 100644 --- a/_locales/de/messages.json +++ b/_locales/de/messages.json @@ -467,6 +467,10 @@ "message": "API auf {url} blockiert, weil die CanvasBlocker-Einstellungen nicht rechtzeitig geladen wurden.", "description": "" }, + "blocked": { + "message": "API auf {url} blockiert.", + "description": "" + }, "fakedReadout": { "message": "Auslese vorgetäuscht auf {url}", "description": "" diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 4fd4a9f..aaa16bc 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -467,6 +467,10 @@ "message": "API blocked on {url} because CanvasBlocker-settings were not loaded in time.", "description": "" }, + "blocked": { + "message": "API blocked on {url}.", + "description": "" + }, "fakedReadout": { "message": "Faked readout on {url}", "description": "" diff --git a/lib/modifiedAPIFunctions.js b/lib/modifiedAPIFunctions.js index c3ddedd..3b76b8a 100644 --- a/lib/modifiedAPIFunctions.js +++ b/lib/modifiedAPIFunctions.js @@ -27,6 +27,7 @@ } return callback.call(object, args, check); } + check.notify.call(object, "blocked"); return undefined; }; }()); \ No newline at end of file diff --git a/releaseNotes.txt b/releaseNotes.txt index c333aed..52011b2 100644 --- a/releaseNotes.txt +++ b/releaseNotes.txt @@ -2,6 +2,7 @@ Version 0.4.6: changes: - Changes in the random supply API - Added grouping to API white list + - Show page action when API is blocked new features: - Can protect Audio API