Skip to content

Commit

Permalink
Fix Options example for toDataURL
Browse files Browse the repository at this point in the history
  • Loading branch information
BendingBender authored Aug 18, 2022
1 parent dc20f97 commit 11bfa6f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,6 @@ QRCode.toFile(
)
```

TypeScript users: if you are using [@types/qrcode](https://www.npmjs.com/package/@types/qrcode), you will need to add a `// @ts-ignore` above the data segment because it expects `data: string`.

## Multibyte characters
Support for multibyte characters isn't present in the initial QR Code standard, but is possible to encode UTF-8 characters in Byte mode.

Expand Down Expand Up @@ -480,11 +478,13 @@ Callback function called on finish.
var opts = {
errorCorrectionLevel: 'H',
type: 'image/jpeg',
quality: 0.3,
margin: 1,
color: {
dark:"#010599FF",
light:"#FFBF60FF"
dark: "#010599FF",
light: "#FFBF60FF"
},
rendererOpts: {
quality: 0.3
}
}

Expand Down

0 comments on commit 11bfa6f

Please sign in to comment.