Project

General

Profile

« Previous | Next » 

Revision 4970930c

Added by koszko over 1 year ago

prepend all generated console messages with 'Haketilo:'

View differences:

content/content.js
59 59
	xhttp.open("GET", request_url, false);
60 60
	xhttp.send();
61 61
    } catch(e) {
62
	console.error("Failure to synchronously fetch policy for url.", e);
62
	console.error("Haketilo: Failure to synchronously fetch policy for url.", e);
63 63
	return fallback_policy();
64 64
    }
65 65

  
......
67 67
	const policy = /^[^?]*\?settings=(.*)$/.exec(xhttp.responseURL)[1];
68 68
	return JSON.parse(decodeURIComponent(policy));
69 69
    } catch(e) {
70
	console.error("Failure to process synchronously fetched policy for url.", e);
70
	console.error("Haketilo: Failure to process synchronously fetched policy for url.", e);
71 71
	return fallback_policy()
72 72
    }
73 73
}
......
108 108
				   globalThis.haketilo_default_allow,
109 109
				   globalThis.haketilo_secret);
110 110
    } catch(e) {
111
	console.error(e);
111
	console.error("Haketilo:", e);
112 112
	var policy = fallback_policy();
113 113
    }
114 114
#ELSE

Also available in: Unified diff