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/plugins/spotifyControls/SpotifyStore.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/plugins/spotifyControls') diff --git a/src/plugins/spotifyControls/SpotifyStore.ts b/src/plugins/spotifyControls/SpotifyStore.ts index 723bc4c..2ceb30c 100644 --- a/src/plugins/spotifyControls/SpotifyStore.ts +++ b/src/plugins/spotifyControls/SpotifyStore.ts @@ -17,7 +17,6 @@ */ import { Settings } from "@api/settings"; -import IpcEvents from "@utils/IpcEvents"; import { proxyLazy } from "@utils/proxyLazy"; import { findByPropsLazy } from "@webpack"; import { Flux, FluxDispatcher } from "@webpack/common"; @@ -94,7 +93,7 @@ export const SpotifyStore = proxyLazy(() => { ? "spotify:" + path.replaceAll("/", (_, idx) => idx === 0 ? "" : ":") : "https://open.spotify.com" + path; - VencordNative.ipc.invoke(IpcEvents.OPEN_EXTERNAL, url); + VencordNative.native.openExternal(url); } // Need to keep track of this manually -- cgit