<dialog id="notification">
<form method="dialog">
- <p id="notification-content"></p>
+ <p>MetaMask must be installed to Connect Wallet.</p>
<button class="text-button">OK</button>
</form>
</dialog>
const statusOutput = document.getElementById('status');
const form = document.querySelector('form');
const notification = document.getElementById('notification');
-const notificationContent = document.getElementById('notification-content');
// Helper function to call the balanceOf function on an address to check if it's eligible to create
// custom short URLs. The same logic is executed on the backend to independently validate on server-side.
.then(setAccount);
}
else {
- notificationContent.textContent = 'MetaMask must be installed to Connect Wallet.';
notification.show();
}
});