jan/electron/utils/setup.ts
2024-04-15 13:27:28 +07:00

10 lines
245 B
TypeScript

import { app } from 'electron'
export const setupCore = async () => {
// Setup core api for main process
global.core = {
// Define appPath function for app to retrieve app path globally
appPath: () => app.getPath('userData'),
}
}