aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
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);
+}