Another indexOf I missed.

This commit is contained in:
Zixaphir 2013-07-24 22:06:08 -07:00
parent dd4d979276
commit d01c811fe2
3 changed files with 3 additions and 3 deletions

View File

@ -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() {

View File

@ -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() {

View File

@ -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'