diff --git a/4chan_x.user.js b/4chan_x.user.js index f6042ce4e..24adde95e 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1313,8 +1313,10 @@ return $.rm(script); }); if (conf['Persistent QR']) { - qr.dialog(); - if (conf['Auto Hide QR']) qr.hide(); + setTimeout(function() { + qr.dialog(); + if (conf['Auto Hide QR']) return qr.hide(); + }); } $.on(d, 'dragover', qr.dragOver); $.on(d, 'drop', qr.dropFile); diff --git a/script.coffee b/script.coffee index df251a9fe..eb217eee8 100644 --- a/script.coffee +++ b/script.coffee @@ -1068,8 +1068,9 @@ qr = $.rm script if conf['Persistent QR'] - qr.dialog() - qr.hide() if conf['Auto Hide QR'] + setTimeout -> + qr.dialog() + qr.hide() if conf['Auto Hide QR'] $.on d, 'dragover', qr.dragOver $.on d, 'drop', qr.dropFile $.on d, 'dragstart', qr.drag