mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-10 22:56:24 +08:00
7c2574b1ca
Co-authored-by: Himself65 <himself65@outlook.com>
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;
|