]> zoso.dev Git - nemo-wallet.git/commitdiff
Reset QR code if account creation fails. Start putting licenses into a list. Fix...
authorChris Duncan <chris@zoso.dev>
Mon, 4 Nov 2024 22:44:29 +0000 (14:44 -0800)
committerChris Duncan <chris@zoso.dev>
Mon, 4 Nov 2024 22:44:29 +0000 (14:44 -0800)
nemo-wallet.html

index aed506d52a8461c2b60c46f6e56b3e81bf00f375..cb549e9c6bef6c75f50fd8f105855bf6735f631e 100644 (file)
                                await selectAccount()
                        } catch (err) {
                                accountSelect.value = ''
+                               resetQrCode()
                                option?.remove()
                                console.error(err)
                                notify.error(`Error creating account`)
                                await wallet.unlock(password)
                                const seed = wallet.seed
                                await wallet.lock(password)
-                               return seed
+                               notify.info(seed)
                        } catch (err) {
                                console.error(err)
                                notify.error(`Error exporting seed`)
                        </div>
                        <article>
                                <h2>Licenses</h2>
-                               <cite>
-                                       <a href="https://zoso.dev/?p=libnemo.git;a=blob_plain;f=LICENSES/GPL-3.0-or-later.txt;hb=refs/heads/main">
-                                               libnemo GPLv3 License
-                                       </a>
-                               </cite>
-                               <cite>
-                                       <a href="https://zoso.dev/?p=libnemo.git;a=blob_plain;f=LICENSES/MIT.txt;hb=refs/heads/main">
-                                               libnemo MIT License
-                                       </a>
-                               </cite>
-                               <cite>
-                                       <a href="https://github.com/twbs/icons/blob/main/LICENSE">
-                                               Bootstrap Icons MIT License
-                                       </a>
-                               </cite>
+                               <ul>
+                                       <li>
+                                               <cite>
+                                                       <a href="https://zoso.dev/?p=libnemo.git;a=blob_plain;f=LICENSES/GPL-3.0-or-later.txt;hb=refs/heads/main">
+                                                               libnemo GPLv3 License
+                                                       </a>
+                                               </cite>
+                                       </li>
+                                       <li>
+                                               <cite>
+                                                       <a href="https://zoso.dev/?p=libnemo.git;a=blob_plain;f=LICENSES/MIT.txt;hb=refs/heads/main">
+                                                               libnemo MIT License
+                                                       </a>
+                                               </cite>
+                                       </li>
+                                       <li>
+                                               <cite>
+                                                       <a href="https://github.com/twbs/icons/blob/main/LICENSE">
+                                                               Bootstrap Icons MIT License
+                                                       </a>
+                                               </cite>
+                                       </li>
+                               </ul>
                        </article>
                </div>
        </main>