From 60b5c54be1bb3326d88ee62301460c4d3aa95446 Mon Sep 17 00:00:00 2001 From: MystiPanda Date: Thu, 4 Apr 2024 14:56:10 +0800 Subject: [PATCH] fix: Use System Browser --- src/components/profile/profile-item.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/profile/profile-item.tsx b/src/components/profile/profile-item.tsx index 58ab6ac..94c092e 100644 --- a/src/components/profile/profile-item.tsx +++ b/src/components/profile/profile-item.tsx @@ -24,7 +24,7 @@ import { EditorViewer } from "./editor-viewer"; import { ProfileBox } from "./profile-box"; import parseTraffic from "@/utils/parse-traffic"; import { ConfirmViewer } from "./confirm-viewer"; - +import { open } from "@tauri-apps/api/shell"; const round = keyframes` from { transform: rotate(0deg); } to { transform: rotate(360deg); } @@ -98,7 +98,7 @@ export const ProfileItem = (props: Props) => { const onOpenHome = () => { setAnchorEl(null); - window.open(itemData.home); // use built-in browser + open(itemData.home ?? ""); }; const onEditInfo = () => {