mirror of https://github.com/gorhill/uBlock.git
this fixes #464
This commit is contained in:
parent
7bf0113db9
commit
de9fad5ec3
|
@ -31,8 +31,17 @@
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
|
// https://github.com/gorhill/uBlock/issues/464
|
||||||
|
if ( document instanceof HTMLDocument === false ) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( !vAPI ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ( vAPI.canExecuteContentScript() !== true ) {
|
if ( vAPI.canExecuteContentScript() !== true ) {
|
||||||
throw "uBlock> contentscript-end.js > Skipping " + location.protocol;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://github.com/gorhill/uBlock/issues/456
|
// https://github.com/gorhill/uBlock/issues/456
|
||||||
|
|
|
@ -34,6 +34,11 @@
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
|
// https://github.com/gorhill/uBlock/issues/464
|
||||||
|
if ( document instanceof HTMLDocument === false ) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Because in case
|
// Because in case
|
||||||
if ( !vAPI ) {
|
if ( !vAPI ) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue