Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 23df450

Browse files
authored
keep consist with js when using qrcode-terminal
1 parent ce6974f commit 23df450

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/typescript.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
Wechaty,
2323
} from 'wechaty'
2424

25-
import { generate } from 'qrcode-terminal'
25+
import qrTerm from 'qrcode-terminal'
2626

2727
/**
2828
*
@@ -69,7 +69,7 @@ bot.start()
6969
*
7070
*/
7171
function onScan (qrcode: string, status: number) {
72-
generate(qrcode, { small: true })
72+
qrTerm.generate(qrcode, { small: true })
7373

7474
// Generate a QR Code online via
7575
// http://goqr.me/api/doc/create-qr-code/

0 commit comments

Comments
 (0)