From d01c811fe2d66a3a0d3ddf564cf52145651230f4 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Wed, 24 Jul 2013 22:06:08 -0700 Subject: [PATCH] Another indexOf I missed. --- builds/4chan-X.user.js | 2 +- builds/crx/script.js | 2 +- src/Miscellaneous/Report.coffee | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 2e2ebc176..c443d26fa 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -9364,7 +9364,7 @@ Report = { init: function() { - if (!(/report/.test(location.search) && d.cookie.indexOf('pass_enabled=1') === -1)) { + if (!(/report/.test(location.search) && !d.cookie.contains('pass_enabled=1'))) { return; } return $.asap((function() { diff --git a/builds/crx/script.js b/builds/crx/script.js index a3911f014..2bba076ae 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -9345,7 +9345,7 @@ Report = { init: function() { - if (!(/report/.test(location.search) && d.cookie.indexOf('pass_enabled=1') === -1)) { + if (!(/report/.test(location.search) && !d.cookie.contains('pass_enabled=1'))) { return; } return $.asap((function() { diff --git a/src/Miscellaneous/Report.coffee b/src/Miscellaneous/Report.coffee index af505998d..f0782aab5 100644 --- a/src/Miscellaneous/Report.coffee +++ b/src/Miscellaneous/Report.coffee @@ -1,6 +1,6 @@ Report = init: -> - return unless /report/.test(location.search) and d.cookie.indexOf('pass_enabled=1') is -1 + return unless /report/.test(location.search) and not d.cookie.contains 'pass_enabled=1' $.asap (-> $.id 'recaptcha_response_field'), Report.ready ready: -> field = $.id 'recaptcha_response_field'