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:' --- content/policy_enforcing.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'content/policy_enforcing.js') diff --git a/content/policy_enforcing.js b/content/policy_enforcing.js index 63c5119..0b74de9 100644 --- a/content/policy_enforcing.js +++ b/content/policy_enforcing.js @@ -224,7 +224,7 @@ function sanitize_element_onevent(element) { * blocked and unable to redefine properties, anyway. */ if (Object.getOwnPropertyDescriptor(element.wrappedJSObject, attr)) { - console.error("Redefined property on a DOM object! The page might have bypassed our script blocking measures!"); + console.error("Haketilo: Redefined property on a DOM object! The page might have bypassed our script blocking measures!"); continue; } element.wrappedJSObject[attr] = null; @@ -348,7 +348,7 @@ async function _disable_service_workers() { if (registrations.length === 0) return; - console.warn("Service Workers detected on this page! Unregistering and reloading."); + console.warn("Haketilo: Service Workers detected on this page! Unregistering and reloading."); try { await Promise.all(registrations.map(r => r.unregister())); @@ -369,7 +369,7 @@ async function disable_service_workers() { try { await _disable_service_workers() } catch (e) { - console.debug("Exception thrown during an attempt to detect and disable service workers.", e); + console.warn("Haketilo: Exception thrown during an attempt to detect and disable service workers.", e); } } -- cgit v1.2.3