1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-02 00:42:45 +01:00
This commit is contained in:
gorhill 2015-01-13 15:52:15 -05:00
parent 7bf0113db9
commit de9fad5ec3
2 changed files with 15 additions and 1 deletions

View File

@ -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 ) {
throw "uBlock> contentscript-end.js > Skipping " + location.protocol;
return;
}
// https://github.com/gorhill/uBlock/issues/456

View File

@ -34,6 +34,11 @@
/******************************************************************************/
// https://github.com/gorhill/uBlock/issues/464
if ( document instanceof HTMLDocument === false ) {
return false;
}
// Because in case
if ( !vAPI ) {
return;