1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-05 18:32:30 +01:00

Remove bad test

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1798
This commit is contained in:
Raymond Hill 2021-11-04 15:54:24 -04:00
parent 955fe944ca
commit c97d12c1d6
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -35,9 +35,6 @@ import './codemirror/ubo-static-filtering.js';
const assetKey = subscribeParams.get('url');
if ( assetKey === null ) { return; }
// https://github.com/uBlockOrigin/uBlock-issues/issues/1797
if ( /^(file|https?):\/\//.test(assetKey) === false ) { return; }
const subscribeElem = subscribeParams.get('subscribe') !== null
? document.getElementById('subscribe')
: null;