mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
11 lines
284 B
TypeScript
11 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);
|