* feat: notifications * feat: watchers * improvements * handle page move for watchers * make watchers non-blocking * more
16 lines
334 B
TypeScript
16 lines
334 B
TypeScript
import * as path from 'path';
|
|
|
|
export const APP_DATA_PATH = 'data';
|
|
const LOCAL_STORAGE_DIR = `${APP_DATA_PATH}/storage`;
|
|
|
|
export const LOCAL_STORAGE_PATH = path.resolve(
|
|
process.cwd(),
|
|
'..',
|
|
'..',
|
|
LOCAL_STORAGE_DIR,
|
|
);
|
|
|
|
export function getPageTitle(title: string | null | undefined): string {
|
|
return title || 'untitled';
|
|
}
|