Skip to content

Commit 47c71d7

Browse files
committed
add period for qr code
1 parent b639186 commit 47c71d7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/ui/qr.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ async function getQrUrl(entry: OTPEntry) {
1919
(entry.issuer ? ('&issuer=' + entry.issuer.split('::')[0]) : '') +
2020
((entry.type === OTPType.hotp || entry.type === OTPType.hhex) ?
2121
('&counter=' + entry.counter) :
22+
'') +
23+
(entry.type === OTPType.totp && entry.period ?
24+
('&period=' + entry.period) :
2225
'');
2326
/* tslint:disable-next-line:no-unused-expression */
2427
new QRCode(

0 commit comments

Comments
 (0)