Files
electron-egg/electron/preload/index.js
gaoshuaixing cced7d9031 chore: log
2025-01-09 19:23:57 +08:00

23 lines
667 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*************************************************
** preload为预加载模块该文件将会在程序启动时加载 **
*************************************************/
const { logger } = require('ee-core/log');
const { trayService } = require('../service/os/tray');
const { securityService } = require('../service/os/security');
const { autoUpdaterService } = require('../service/os/auto_updater');
function preload() {
// 示例功能模块,可选择性使用和修改
logger.info('[preload] load');
trayService.create();
securityService.create();
autoUpdaterService.create();
}
/**
* 预加载模块入口
*/
module.exports = {
preload
}