From 676bc612d96c3d1d7c7a80e62bf8e50a2a6fb74b Mon Sep 17 00:00:00 2001 From: Vendicated Date: Wed, 5 Apr 2023 04:09:42 +0200 Subject: VencordDesktop: Include web plugins & use proper showItemInFolder --- src/utils/native.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/utils') diff --git a/src/utils/native.ts b/src/utils/native.ts index 70e4c0e..05fa0aa 100644 --- a/src/utils/native.ts +++ b/src/utils/native.ts @@ -22,3 +22,10 @@ export function relaunch() { else window.VencordDesktop.app.relaunch(); } + +export function showItemInFolder(path: string) { + if (IS_DISCORD_DESKTOP) + window.DiscordNative.fileManager.showItemInFolder(path); + else + window.VencordDesktop.fileManager.showItemInFolder(path); +} -- cgit