diff --git a/4chan_x.user.js b/4chan_x.user.js index f31250dba..8b1d2f6c8 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1431,12 +1431,11 @@ ta.focus(); return (_base = $('[name=resto]', qr)).value || (_base.value = tid); }, - receive: function(e) { - var cooldown, data, qr, row, tc, _ref, _ref2; + receive: function(data) { + var cooldown, qr, row, tc, _ref, _ref2; $('iframe[name=iframe]').src = 'about:blank'; qr = QR.qr; row = (_ref = $('#files input[form]', qr)) != null ? _ref.parentNode : void 0; - data = e.data; if (data) { if (QR.op) { window.location = data; diff --git a/script.coffee b/script.coffee index 5c19f2d20..fd407ad4b 100644 --- a/script.coffee +++ b/script.coffee @@ -1127,11 +1127,10 @@ QR = ta.setSelectionRange i, i ta.focus() $('[name=resto]', qr).value or= tid - receive: (e) -> + receive: (data) -> $('iframe[name=iframe]').src = 'about:blank' {qr} = QR row = $('#files input[form]', qr)?.parentNode - {data} = e if data window.location = data if QR.op return