From: Ardis Lu Date: Thu, 3 Nov 2022 05:13:58 +0000 (-0700) Subject: Simplify notification text X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=79ea1156c110fb4b81b086d5c0c8456a49651cff;p=alu.bz Simplify notification text --- diff --git a/index.html b/index.html index 2cf69f0..1cec13b 100644 --- a/index.html +++ b/index.html @@ -62,7 +62,7 @@
-

+

MetaMask must be installed to Connect Wallet.

diff --git a/script.js b/script.js index f6c3b6c..31af8aa 100644 --- a/script.js +++ b/script.js @@ -5,7 +5,6 @@ const shortUrlAside = document.getElementById('short-url-aside'); 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. @@ -120,7 +119,6 @@ connectButton.addEventListener('click', () => { .then(setAccount); } else { - notificationContent.textContent = 'MetaMask must be installed to Connect Wallet.'; notification.show(); } });