Skip to content

Commit

Permalink
ignore empty migration URI
Browse files Browse the repository at this point in the history
  • Loading branch information
korki43 committed Mar 6, 2021
1 parent 7c5358b commit aae2249
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Changelog

## Unreleased
Changes in the upcoming version are documented here.

ignore empty migration URI

---

Expand All @@ -13,9 +14,9 @@ adjust CI for uppercase changelog

## v2.0.0

Rewrite without React
Allow direct input of otpauth-migration URI
Fix Typos
- rewrite without React
- allow direct input of otpauth-migration URI
- fix Typos

---

Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ qrFileInput.addEventListener('change', async (e: any) => {
});

function processMigrationURI(uri: string) {
if (uri.length == 0) return;
uriListHeader.classList.add('hidden');
errorBox.innerText = '';
while (uriList.firstChild) {
Expand Down

0 comments on commit aae2249

Please sign in to comment.