diff options
author | V <vendicated@riseup.net> | 2023-05-02 02:50:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 02:50:51 +0200 |
commit | c62d05e1b32361425474928004a92338d98ba200 (patch) | |
tree | 63e2d718807055dbdbbe7d2624270d8aa138fa2d /src/plugins/apiBadges.tsx | |
parent | 6a1cb133cd6cbe2946e4c830291318e873da1d8b (diff) | |
download | Vencord-c62d05e1b32361425474928004a92338d98ba200.tar.gz Vencord-c62d05e1b32361425474928004a92338d98ba200.tar.bz2 Vencord-c62d05e1b32361425474928004a92338d98ba200.zip |
Refactor ipc to be strongly typed and hide impl details (#1018)
Diffstat (limited to 'src/plugins/apiBadges.tsx')
-rw-r--r-- | src/plugins/apiBadges.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/apiBadges.tsx b/src/plugins/apiBadges.tsx index a156b63..bf1906f 100644 --- a/src/plugins/apiBadges.tsx +++ b/src/plugins/apiBadges.tsx @@ -22,7 +22,6 @@ import ErrorBoundary from "@components/ErrorBoundary"; import { Flex } from "@components/Flex"; import { Heart } from "@components/Heart"; import { Devs } from "@utils/constants"; -import IpcEvents from "@utils/IpcEvents"; import Logger from "@utils/Logger"; import { Margins } from "@utils/margins"; import { closeModal, Modals, openModal } from "@utils/modal"; @@ -115,7 +114,7 @@ export default definePlugin({ const modalKey = openModal(props => ( <ErrorBoundary noop onError={() => { closeModal(modalKey); - VencordNative.ipc.invoke(IpcEvents.OPEN_EXTERNAL, "https://github.com/sponsors/Vendicated"); + VencordNative.native.openExternal("https://github.com/sponsors/Vendicated"); }}> <Modals.ModalRoot {...props}> <Modals.ModalHeader> |