diff --git a/README.md b/README.md index 5e2d2dc..a9e31d0 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,8 @@ var qrcode = new QRCode(document.getElementById("qrcode"), { height: 128, colorDark : "#000000", colorLight : "#ffffff", - correctLevel : QRCode.CorrectLevel.H + correctLevel : QRCode.CorrectLevel.H, + alt: "image alt text" }); ``` diff --git a/qrcode.js b/qrcode.js index 5507c15..d3805b0 100644 --- a/qrcode.js +++ b/qrcode.js @@ -362,7 +362,7 @@ var QRCode; this._oContext = this._elCanvas.getContext("2d"); this._bIsPainted = false; this._elImage = document.createElement("img"); - this._elImage.alt = "Scan me!"; + this._elImage.alt = htOption.alt; this._elImage.style.display = "none"; this._el.appendChild(this._elImage); this._bSupportDataURI = null;