Files
AFFiNE-Mirror/apps/electron/layers/main/src/context.ts
2023-05-09 02:30:01 -05:00

13 lines
219 B
TypeScript

import { app } from 'electron';
export const appContext = {
get appName() {
return app.name;
},
get appDataPath() {
return app.getPath('sessionData');
},
};
export type AppContext = typeof appContext;