aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2023-04-05 04:09:42 +0200
committerVendicated <vendicated@riseup.net>2023-04-05 04:09:42 +0200
commit676bc612d96c3d1d7c7a80e62bf8e50a2a6fb74b (patch)
treeabb127ffe188202339dae149e8afee3b2d22b36e /src/utils
parentd8a5e430340c22ba348c0ec62f4cf788a59f049d (diff)
downloadVencord-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.ts7
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);
+}