mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
13 lines
219 B
TypeScript
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;
|