Skip to content

Commit

Permalink
fix: Use System Browser
Browse files Browse the repository at this point in the history
  • Loading branch information
MystiPanda committed Apr 4, 2024
1 parent 448412a commit 60b5c54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/profile/profile-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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); }
Expand Down Expand Up @@ -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 = () => {
Expand Down

0 comments on commit 60b5c54

Please sign in to comment.