Skip to content

Commit ac4daab

Browse files
committed
correctly decode names and export improvements
1 parent f29c6f5 commit ac4daab

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

interface/utils/convert.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export const totpImageConverter = (data: string): string => {
140140
const uri = new URL(data)
141141

142142
// get name
143-
const name = uri.pathname.slice(1)
143+
const name = decodeURIComponent(uri.pathname.slice(1))
144144

145145
// get secret
146146
const secret = uri.searchParams.get("secret")

interface/windows/export/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ export const exportHtmlFile = async () => {
8484
const qrSrc = qr.createDataURL(3, 3)
8585

8686
const element = `
87-
<div>
87+
<div style="margin-bottom: 300px;">
8888
<img class="img" src="${qrSrc}">
89-
<h1 style=font-family:Arial;>${issuers[i]}</h1>
89+
<h1 style=font-family:Arial;>${issuers[i]} (${names[i]})</h1>
9090
</div>`
9191

9292
htmlString += element

0 commit comments

Comments
 (0)