1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

Fix window.open-defuser

Matching logic has been erronesouly reverse.
This commit is contained in:
Raymond Hill 2019-07-05 07:59:02 -04:00
parent a992875c94
commit 3e53963be3
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -22,7 +22,7 @@
(function() {
'use strict';
let result = parseInt('{{1}}', 10);
result = isNaN(result) || result !== 0;
result = isNaN(result) === false && result === 0;
let needle = '{{2}}';
if ( needle === '' || needle === '{{2}}' ) {
needle = '.?';