Skip to content

Safari can't process QR downloads properly #9

@swaan

Description

@swaan

It seems Safari needs time to render each QR or you will get only the last one.
I replaced the downloadqrcodes function with:

async downloadqrcodes(event) {
          for (let w = this.startip; w < this.startip + this.clientcount; w++) {
            let canvas = document.getElementById("canvas" + w);
            if (canvas) {
              await this.downloadCanvas(canvas, this.clients[w].name);
            }
          }
        },

        downloadCanvas(canvas, filename) {
          return new Promise((resolve) => {
            download(canvas, filename);
            setTimeout(resolve, 200);
          });
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions