From c62d05e1b32361425474928004a92338d98ba200 Mon Sep 17 00:00:00 2001 From: V Date: Tue, 2 May 2023 02:50:51 +0200 Subject: Refactor ipc to be strongly typed and hide impl details (#1018) --- src/components/DonateButton.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/components/DonateButton.tsx') diff --git a/src/components/DonateButton.tsx b/src/components/DonateButton.tsx index 49f079b..c027fcf 100644 --- a/src/components/DonateButton.tsx +++ b/src/components/DonateButton.tsx @@ -16,7 +16,6 @@ * along with this program. If not, see . */ -import IpcEvents from "@utils/IpcEvents"; import { Button } from "@webpack/common"; import { Heart } from "./Heart"; @@ -27,9 +26,7 @@ export default function DonateButton(props: any) { {...props} look={Button.Looks.LINK} color={Button.Colors.TRANSPARENT} - onClick={() => - VencordNative.ipc.invoke(IpcEvents.OPEN_EXTERNAL, "https://github.com/sponsors/Vendicated") - } + onClick={() => VencordNative.native.openExternal("https://github.com/sponsors/Vendicated")} > Donate -- cgit