Qr image Scan results shows duplicated data

hello, So i’m using miniqr javascript code to read qr images via webcam and displaying its contents … but when i try to scan a qr image its duplicate many times and when i scan another qr image its happen again … i want to display every unique qr image decoded text once only without duplicates so i can easily insert them to mysql with no conflict … here is the image to show you what i mean … sorry for my bad english


Here is the data code for displaying decoded text from qr image

Miniqr.callback = qrcode.callback = function(data) {
    if (data) {
      return typeof console !== "undefined" && console !== null ? typeof console.log === "function" ? console.log(data) : void 0 : void 0;
    } else {
      return Miniqr.errorCallback(data);

here is the script im using from github

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.