1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-02 10:24:59 +12:00

this fixes warning/error entries in browser console

This commit is contained in:
gorhill 2015-05-12 08:04:13 -04:00
parent b41cc1ff28
commit 535a46db37
3 changed files with 14 additions and 2 deletions

View file

@ -36,7 +36,12 @@
// https://github.com/chrisaljoudi/uBlock/issues/464
if ( document instanceof HTMLDocument === false ) {
//console.debug('contentscript-end.js > not a HTLMDocument');
return false;
return;
}
// This can also happen (for example if script injected into a `data:` URI doc)
if ( !window.location ) {
return;
}
// This can happen

View file

@ -38,6 +38,11 @@ if ( document instanceof HTMLDocument === false ) {
return;
}
// This can also happen (for example if script injected into a `data:` URI doc)
if ( !window.location ) {
return;
}
// This can happen
if ( !vAPI ) {
//console.debug('contentscript-start.js > vAPI not found');

View file

@ -57,7 +57,9 @@ var defaultLocalUserSettings = {
].join(''),
placeholderBorder: '1px solid rgba(0, 0, 0, 0.05)',
placeholderDocument: [
'<html><head><style>',
'<html><head>',
'<meta charset="utf-8">',
'<style>',
'body { ',
'background: {{bg}};',
'color: gray;',