diff options
author | Vendicated <vendicated@riseup.net> | 2023-04-05 04:09:42 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2023-04-05 04:09:42 +0200 |
commit | 676bc612d96c3d1d7c7a80e62bf8e50a2a6fb74b (patch) | |
tree | abb127ffe188202339dae149e8afee3b2d22b36e /src/utils | |
parent | d8a5e430340c22ba348c0ec62f4cf788a59f049d (diff) | |
download | Vencord-676bc612d96c3d1d7c7a80e62bf8e50a2a6fb74b.tar.gz Vencord-676bc612d96c3d1d7c7a80e62bf8e50a2a6fb74b.tar.bz2 Vencord-676bc612d96c3d1d7c7a80e62bf8e50a2a6fb74b.zip |
VencordDesktop: Include web plugins & use proper showItemInFolder
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/native.ts | 7 |
1 files changed, 7 insertions, 0 deletions
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); +} |