Skip to content

Commit bfb739e

Browse files
committedMar 1, 2022
don't round size to multiple of 2
1 parent 0f40773 commit bfb739e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎bin/servez

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const log = {
2222
function genQRCode(s) {
2323

2424
const qr = QrCode.encodeText(s, Ecc.MEDIUM);
25-
const size = ((qr.size + 1) / 2 | 0) * 2 + 2;
25+
const size = qr.size + 2;
2626

2727
const lines = [];
2828
for (let y = -2; y < size; ++y) {

0 commit comments

Comments
 (0)
Please sign in to comment.