mirror of
https://github.com/Merricx/qrazybox.git
synced 2024-11-22 02:52:57 +01:00
dump to text support for show_Grey button
This commit is contained in:
parent
39088a3d91
commit
bfe213af7a
1 changed files with 1 additions and 1 deletions
|
@ -305,7 +305,7 @@ function dump_qr_array() {
|
||||||
let sz = qr_array.length;
|
let sz = qr_array.length;
|
||||||
dump_qr = "";
|
dump_qr = "";
|
||||||
for(let i=0;i<sz;i++) {
|
for(let i=0;i<sz;i++) {
|
||||||
let line = qr_array[i].map(x => x===1 ? 'X' : '_').join('');
|
let line = qr_array[i].map(x => ( x===1 ? '#' : ( x===0 ? '_' : ( show_grey ? '?' : '_' ) ) ) ).join('');
|
||||||
console.log(line);
|
console.log(line);
|
||||||
dump_qr += line + "\n"
|
dump_qr += line + "\n"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue