mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-04 10:09:38 +02:00
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 ) {
|
||||
throw "uBlock> contentscript-end.js > Skipping " + location.protocol;
|
||||
return;
|
||||
}
|
||||
|
||||
// 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
|
||||
if ( !vAPI ) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user