Files
electron-egg/electron/preload/index.js
2025-01-04 21:00:21 +08:00

22 lines
626 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 { trayService } = require('../service/os/tray');
const { securityService } = require('../service/os/security');
const { autoUpdaterService } = require('../service/os/auto_updater');
function preload() {
// 示例功能模块,可选择性使用和修改
console.log('preload functions');
trayService.create();
securityService.create();
autoUpdaterService.create();
}
/**
* 预加载模块入口
*/
module.exports = {
preload
}