From c97d12c1d6a23b5b5b13d3a3dc1e46fbaa493921 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Thu, 4 Nov 2021 15:54:24 -0400 Subject: [PATCH] Remove bad test Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1798 --- src/js/asset-viewer.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/js/asset-viewer.js b/src/js/asset-viewer.js index db22ee267..ef0824d6d 100644 --- a/src/js/asset-viewer.js +++ b/src/js/asset-viewer.js @@ -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;