From 79ea1156c110fb4b81b086d5c0c8456a49651cff Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Wed, 2 Nov 2022 22:13:58 -0700 Subject: [PATCH] Simplify notification text --- index.html | 2 +- script.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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(); } }); -- 2.47.3