I am looking for guidance on how I integrate the opportunity for users to select their wallet from a list which is then connected to my page. I have Nami working but when I try call for other wallets they do not seem to function. the code I am working from is;
<button id="button" style="width: 200px; height: 30px;">
connect wallet
</button>
<script>
var button = document.getElementById("button");
var status = document.getElementById("Status");
async function connectWallet() {
try {
await cardano.enable();
if (typeof window.cardano === "undefined" || typeof window.cardano.nami === "undefined") {
throw new Error("Please install Nami Wallet");
} else {
const api = await window.cardano.nami.enable();
const addresses = await api.getUsedAddresses();
console.log(addresses);
}
} catch (error) {
status.innerHTML = error.message;
}
}
button.addEventListener("click", connectWallet);
</script>
Thanks in advance