提交 b69b70ea 编写于 作者: L Lazar Laszlo 提交者: GitHub

Merge pull request #47 from tarun1793/patch-1

Allow cross-origin canvas image
......@@ -44,6 +44,7 @@ qrcode.decode = function(src){
else
{
var image = new Image();
image.crossOrigin = "Anonymous";
image.onload=function(){
//var canvas_qr = document.getElementById("qr-canvas");
var canvas_qr = document.createElement('canvas');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册