From 4970930c2f866133c38fa73800f1a963f0856692 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Fri, 4 Mar 2022 16:57:07 +0100 Subject: prepend all generated console messages with 'Haketilo:' --- background/webrequest.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'background/webrequest.js') diff --git a/background/webrequest.js b/background/webrequest.js index bceba26..f0c5b1b 100644 --- a/background/webrequest.js +++ b/background/webrequest.js @@ -117,7 +117,7 @@ function on_before_request(details) return; #IF DEBUG - console.debug(`Settings queried using XHR for '${details.url}'.`); + console.debug(`Haketilo: Settings queried using XHR for '${details.url}'.`); #ENDIF /* @@ -129,7 +129,7 @@ function on_before_request(details) const queried_url = decodeURIComponent(match[1]); if (details.initiator && !queried_url.startsWith(details.initiator)) { - console.warn(`Blocked suspicious query of '${url}' by '${details.initiator}'. This might be the result of page fingerprinting the browser.`); + console.warn(`Haketilo: Blocked suspicious query of '${url}' by '${details.initiator}'. This might be the result of page fingerprinting the browser.`); return {cancel: true}; } @@ -140,7 +140,7 @@ function on_before_request(details) } } - console.warn(`Bad request! Expected ${browser.runtime.getURL("dummy")}?url=. Got ${details.url}. This might be the result of page fingerprinting the browser.`); + console.warn(`Haketilo: Bad request! Expected ${browser.runtime.getURL("dummy")}?url=. Got ${details.url}. This might be the result of page fingerprinting the browser.`); return {cancel: true}; } -- cgit v1.2.3