]> git.ardis.lu - alu.bz/commitdiff
Simplify notification text
authorArdis Lu <ardisglu@gmail.com>
Thu, 3 Nov 2022 05:13:58 +0000 (22:13 -0700)
committerArdis Lu <ardisglu@gmail.com>
Thu, 3 Nov 2022 05:13:58 +0000 (22:13 -0700)
index.html
script.js

index 2cf69f0fe05e0a49b14b215b08b352a82b76f799..1cec13b34ae8a591dba6f8ad3cf35a5e563067f1 100644 (file)
@@ -62,7 +62,7 @@
 
     <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>
index f6c3b6c02ab12fd00006c2e6745510dab42805b2..31af8aa7a768a8ab5eacecef5e65158f45d0ebc8 100644 (file)
--- 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();
   }
 });
This page took 0.039634 seconds and 4 git commands to generate.