From ee5dd3abd7e6bd3483b8c5946736ec75a6bd1b78 Mon Sep 17 00:00:00 2001 From: Andrei Canta Date: Sat, 18 Mar 2023 01:13:20 +0200 Subject: [PATCH] open feedback link in browser --- src/components/Layout.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 90eae76..b4711cf 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -205,6 +205,14 @@ export function Layout() { { + if (window.todesktop) { + event.preventDefault(); + window.todesktop.contents.openUrlInBrowser( + "https://feedback.chatpad.ai" + ); + } + }} target="_blank" sx={{ flex: 1 }} size="xl"