From def645198c15806dd1b9c3be96e83a4774e7bf92 Mon Sep 17 00:00:00 2001 From: Mikhail Petrov Date: Wed, 4 Sep 2024 18:05:26 +0300 Subject: [PATCH 1/3] web: Add ws connection for o3 wallet in CSP header Signed-off-by: Mikhail Petrov --- public/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index b7a1a5a..d8f7efc 100644 --- a/public/index.html +++ b/public/index.html @@ -15,7 +15,7 @@ - + From 5912975a29897e87add6f6c03e688ece56652b5c Mon Sep 17 00:00:00 2001 From: Mikhail Petrov Date: Wed, 4 Sep 2024 18:05:51 +0300 Subject: [PATCH 2/3] web: Remove useless console log Signed-off-by: Mikhail Petrov --- src/App.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/App.js b/src/App.js index 50de4cf..44affdd 100644 --- a/src/App.js +++ b/src/App.js @@ -810,7 +810,6 @@ export const App = () => {
- {console.log()} Date: Wed, 4 Sep 2024 18:06:25 +0300 Subject: [PATCH 3/3] web: Add misconfigured connection warning for all wallets, closes #212 Signed-off-by: Mikhail Petrov --- src/Profile.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Profile.js b/src/Profile.js index 6eceee4..3e06b6d 100644 --- a/src/Profile.js +++ b/src/Profile.js @@ -176,6 +176,12 @@ const Profile = ({
Check web app configuration or try later
)} + {walletData.net.toLowerCase().indexOf(activeNet.toLowerCase()) === -1 && ( + +
{`Сonnected wallet uses ${walletData.net} network`}
+
{`Panel is configured for ${activeNet}, mismatching networks can lead to incorrect behavior.`}
+
+ )} {formatAddress(walletData.account.address)}