refactor/sidebar-socials: refactor & adjust code

This commit is contained in:
Guilherme Viana
2024-04-19 16:47:07 -03:00
parent 68e4612f47
commit 3ed9c367ea
6 changed files with 42 additions and 57 deletions

View File

@@ -0,0 +1,9 @@
import { shell } from "electron";
import { registerEvent } from "../register-event";
const openExternal = async (_event: Electron.IpcMainInvokeEvent, src: string) =>
shell.openExternal(src);
registerEvent(openExternal, {
name: "openExternal",
});