From 724747ee857e86c65d90f131bca757efcf3be958 Mon Sep 17 00:00:00 2001 From: reya Date: Tue, 21 Nov 2023 10:22:52 +0700 Subject: [PATCH] polish --- extension/options.jsx | 33 +++++++++++++++++---------------- extension/prompt.jsx | 4 ++-- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/extension/options.jsx b/extension/options.jsx index 90b4854..96e489d 100644 --- a/extension/options.jsx +++ b/extension/options.jsx @@ -425,7 +425,7 @@ function Options() {
- +
{handleNostrLinks && (
@@ -464,20 +464,20 @@ function Options() { )}
{showProtocolHandlerHelp && ( -
{`
-    {raw} = anything after the colon, i.e. the full nip19 bech32 string
-    {hex} = hex pubkey for npub or nprofile, hex event id for note or nevent
-    {p_or_e} = "p" for npub or nprofile, "e" for note or nevent
-    {u_or_n} = "u" for npub or nprofile, "n" for note or nevent
-    {relay0} = first relay in a nprofile or nevent
-    {relay1} = second relay in a nprofile or nevent
-    {relay2} = third relay in a nprofile or nevent
-    {hrp} = human-readable prefix of the nip19 string
+                      
{`
+{raw} = anything after the colon, i.e. the full nip19 bech32 string
+{hex} = hex pubkey for npub or nprofile, hex event id for note or nevent
+{p_or_e} = "p" for npub or nprofile, "e" for note or nevent
+{u_or_n} = "u" for npub or nprofile, "n" for note or nevent
+{relay0} = first relay in a nprofile or nevent
+{relay1} = second relay in a nprofile or nevent
+{relay2} = third relay in a nprofile or nevent
+{hrp} = human-readable prefix of the nip19 string
 
-    examples:
-      - https://njump.me/{raw}
-      - https://snort.social/{raw}
-      - https://nostr.band/{raw}
+examples:
+  - https://njump.me/{raw}
+  - https://snort.social/{raw}
+  - https://nostr.band/{raw}
                 `}
)}
@@ -489,7 +489,7 @@ function Options() { @@ -569,6 +569,7 @@ function Options() { function addNewRelay() { if (newRelayURL.trim() === '') return + if (!newRelayURL.startsWith('wss://')) return relays.push({ url: newRelayURL, policy: {read: true, write: true} diff --git a/extension/prompt.jsx b/extension/prompt.jsx index f444275..06aa3d1 100644 --- a/extension/prompt.jsx +++ b/extension/prompt.jsx @@ -51,9 +51,9 @@ function Prompt() { {params && ( -
+

Now acting on

-
+            
               {JSON.stringify(event || params, null, 2)}