Is there has a callback method when i scaned successfully?
is there a callback function ? it sucks to just wait for it.
i need it too
A callback upon the image loading would be useful. Sure we can find the <img> tag created by qrcodejs and then set its onload callback, but once the image loads the first time this doesn't seem to work.
Edit: I think one could just set the image's src attribute to an empty string and then the onload event might fire once it's loaded again. Not sure.
Use the element's onload property or in jQuery the load event, which must be used with on: $('#elm').on('load', ()=>console.log('hi') );