diff --git a/4chan_x.user.js b/4chan_x.user.js index 132b85c04..06b61ae35 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2366,7 +2366,7 @@ return this.input.alt = count; }, reload: function(focus) { - window.location = 'javascript:Recaptcha.reload("t")'; + $.globalEval('javascript:Recaptcha.reload("t")'); if (focus) { return QR.captcha.input.focus(); } diff --git a/changelog b/changelog index 055026b08..e8ac104b4 100644 --- a/changelog +++ b/changelog @@ -1,6 +1,7 @@ master - Mayhem Fix selection quoting on Opera. + Fix history bug with Persistent QR enabled on Chrome. 2.37.0 - noface diff --git a/script.coffee b/script.coffee index 29f182e2d..8db247473 100644 --- a/script.coffee +++ b/script.coffee @@ -1840,7 +1840,7 @@ QR = @input.alt = count # For XTRM RICE. reload: (focus) -> # the "t" argument prevents the input from being focused - window.location = 'javascript:Recaptcha.reload("t")' + $.globalEval 'javascript:Recaptcha.reload("t")' # Focus if we meant to. QR.captcha.input.focus() if focus keydown: (e) ->