mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-29 13:51:02 +00:00
12 lines
284 B
TypeScript
12 lines
284 B
TypeScript
import { shell } from "electron";
|
|
import { registerEvent } from "../register-event";
|
|
|
|
const showItemInFolder = async (
|
|
_event: Electron.IpcMainInvokeEvent,
|
|
filePath: string
|
|
) => {
|
|
return shell.showItemInFolder(filePath);
|
|
};
|
|
|
|
registerEvent("showItemInFolder", showItemInFolder);
|