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)