jan/electron/utils/extension.ts
Louis 74ed081e4f
refactor: add app and nitro log - resolve dependencies issue (#1447)
* refactor: add app and nitro log - resolve dependencies issue

* fix: update guidance message on inference error

* chore: add timestamp to log files

* chore: add clear logs action
2024-01-10 16:43:28 +07:00

14 lines
397 B
TypeScript

import { init, userSpacePath } from '@janhq/core/node'
import path from 'path'
export const setupExtensions = () => {
init({
// Function to check from the main process that user wants to install a extension
confirmInstall: async (_extensions: string[]) => {
return true
},
// Path to install extension to
extensionsPath: path.join(userSpacePath, 'extensions'),
})
}