mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 05:14:53 -05:00
Update versionQRCode.js
This commit is contained in:
@@ -54,7 +54,9 @@ function updateQRCode(url = card.qrCode.url) {
|
|||||||
value: url
|
value: url
|
||||||
});
|
});
|
||||||
//draw cropped qr code to correct location
|
//draw cropped qr code to correct location
|
||||||
qrCodeCanvas.getContext('2d').drawImage(croppedCanvas(qriousCanvas), scaleWidth(card.qrCode.x), scaleHeight(card.qrCode.y), scaleHeight(card.qrCode.size), scaleHeight(card.qrCode.size));
|
var qrCodeContext = qrCodeCanvas.getContext('2d');
|
||||||
|
qrCodeContext.clearRect(0, 0, qrCodeCanvas.width, qrCodeCanvas.height);
|
||||||
|
qrCodeContext.drawImage(croppedCanvas(qriousCanvas), scaleWidth(card.qrCode.x), scaleHeight(card.qrCode.y), scaleHeight(card.qrCode.size), scaleHeight(card.qrCode.size));
|
||||||
//draw the card
|
//draw the card
|
||||||
drawCard();
|
drawCard();
|
||||||
}
|
}
|
Reference in New Issue
Block a user