zxpsuper / qrcode-with-logos

A plugin for generating QR codes with a logo and styling.
https://zxpsuper.github.io/qrcode-with-logos
MIT License
138 stars 41 forks source link

Logo 'src' property is required #47

Closed iPavlikov closed 1 week ago

iPavlikov commented 4 weeks ago

Is it possible to make logo 'src' property optional? If it is not provided, then draw regular QR code.

zxpsuper commented 4 weeks ago

Yes, it is. Now you not provide the logo option, it will draw regular QR code in latest version.

new QrCodeWithLogo({
  content: "https://github.com/zxpsuper",
  width: 1024,
  image: document.getElementById("image"),
  // logo: {
  //     src: this.logo
  //},
});

image

@iPavlikov