fix: Use System Browser

This commit is contained in:
MystiPanda 2024-04-04 14:56:10 +08:00
parent 5f25e027c4
commit d4a0136504

View File

@ -24,7 +24,7 @@ import { EditorViewer } from "./editor-viewer";
import { ProfileBox } from "./profile-box"; import { ProfileBox } from "./profile-box";
import parseTraffic from "@/utils/parse-traffic"; import parseTraffic from "@/utils/parse-traffic";
import { ConfirmViewer } from "./confirm-viewer"; import { ConfirmViewer } from "./confirm-viewer";
import { open } from "@tauri-apps/api/shell";
const round = keyframes` const round = keyframes`
from { transform: rotate(0deg); } from { transform: rotate(0deg); }
to { transform: rotate(360deg); } to { transform: rotate(360deg); }
@ -98,7 +98,7 @@ export const ProfileItem = (props: Props) => {
const onOpenHome = () => { const onOpenHome = () => {
setAnchorEl(null); setAnchorEl(null);
window.open(itemData.home); // use built-in browser open(itemData.home ?? "");
}; };
const onEditInfo = () => { const onEditInfo = () => {