]> zoso.dev Git - nemo-wallet.git/commitdiff
We need to figure out whether to treat Ledger wallet like software wallets in terms... ledger
authorChris Duncan <chris@zoso.dev>
Sat, 2 Nov 2024 08:46:24 +0000 (01:46 -0700)
committerChris Duncan <chris@zoso.dev>
Sat, 2 Nov 2024 08:46:24 +0000 (01:46 -0700)
nemo-wallet.html

index 041b17a654f1f2a2a3c719daaf9df763f390fd28..7bfea85e783fc2ee2146036beb925ee5df604b29 100644 (file)
@@ -9,7 +9,7 @@
                import { Buffer } from 'https://esm.run/buffer-browser@6.0.4/index.js'
                globalThis.Buffer = Buffer
        </script>
-       <script type="module" src="https://cdn.jsdelivr.net/npm/libnemo@0.0.17/dist/global.min.js"></script>
+       <script type="module" src="https://cdn.jsdelivr.net/npm/libnemo@0.0.18/dist/global.min.js"></script>
        <script>
                // const barcodeDetector = new BarcodeDetector({
                //      formats: ["qr_code"],
 
                async function loadWallet () {
                        const walletSelect = document.getElementById('wallet')
-                       if (walletSelect?.value?.substring(0, 1) !== '_') {
+                       if (walletSelect?.value && walletSelect.value.substring(0, 1) !== '_') {
                                const wallets = await loadWallets()
                                const { id, algorithm } = wallets.find(w => w.id === walletSelect.value)
                                const walletClass = getWalletClass(algorithm)