Files
electron-egg/electron/preload/index.js
2023-03-07 19:12:11 +08:00

20 lines
581 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为预加载模块该文件将会在程序启动时加载 **
*************************************************/
/**
* 预加载模块入口
*/
module.exports = async (app) => {
//已实现的功能模块,可选择性使用和修改
const trayAddon = app.addon.tray;
const securityAddon = app.addon.security;
const awakenAddon = app.addon.awaken;
const autoUpdaterAddon = app.addon.autoUpdater;
trayAddon.create();
securityAddon.create();
awakenAddon.create();
autoUpdaterAddon.create();
}