diff --git a/4chan_x.user.js b/4chan_x.user.js index a44f909b4..d454767c4 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1327,7 +1327,7 @@ } if (qr.el) { fileDiv = $('#files div:last-child', qr.el); - if (g.REPLY && (conf['Persistent QR'] || file)) { + if (g.REPLY && (conf['Persistent QR'] || fileDiv)) { qr.refresh(); if (fileDiv) { $.rm(fileDiv); diff --git a/script.coffee b/script.coffee index b38a85411..7ba4c80f6 100644 --- a/script.coffee +++ b/script.coffee @@ -966,7 +966,6 @@ cooldown = qr.autoPost() qr = - # remove file # error handling # persistent captcha # rm Recaptcha @@ -1077,7 +1076,7 @@ qr = if qr.el fileDiv = $ '#files div:last-child', qr.el - if g.REPLY and (conf['Persistent QR'] or file) + if g.REPLY and (conf['Persistent QR'] or fileDiv) qr.refresh() if fileDiv $.rm fileDiv