1 import biometrics from './lib/biometrics';
2 import clipboard from './lib/clipboard';
3 import { setupIpcHandlers as info } from './lib/install-info';
4 import navigation from './lib/navigation';
5 import type { PassElectronContext } from './types';
6 import { handleSquirrelEvents } from './utils/squirrel';
8 export const startup = async (ctx: PassElectronContext) => {
9 // Handle creating/removing shortcuts on Windows when installing/uninstalling.
10 await handleSquirrelEvents();
12 // Initialize IPC handlers
13 biometrics(() => ctx.window);
14 navigation(() => ctx.window);