24 lines
659 B
TypeScript
24 lines
659 B
TypeScript
/**
|
|
* Preload module, this file will be loaded when the program starts.
|
|
*/
|
|
|
|
import {logger} from 'ee-core/log';
|
|
import {trayService} from '../service/os/tray';
|
|
import {securityService} from '../service/os/security';
|
|
import {autoUpdaterService} from '../service/os/auto_updater';
|
|
import {activateRecordService} from '../service/database/activateRecord';
|
|
|
|
function preload(): void {
|
|
// Example feature module, optional to use and modify
|
|
logger.info('[preload] load 5');
|
|
trayService.create();
|
|
securityService.create();
|
|
autoUpdaterService.create();
|
|
|
|
activateRecordService.init();
|
|
}
|
|
|
|
/**
|
|
* Entry point of the preload module
|
|
*/
|
|
export { preload }; |