refactor: framework的操作性

This commit is contained in:
手瓜一十雪 committed 2024-11-28 20:00:24 +08:00
1 parent e03905abaf
commit 97cacb4383
3 files changed
+26 -19

No files matched your search

+4
View File
@@ -1,6 +1,10 @@
//LiteLoader需要提供部分IPC接口,以便于其他插件调用
const { ipcMain } = require('electron');
const napcat = require('./napcat.cjs');
const { shell } = require('electron');
ipcMain.handle('napcat_get_webtoken', async (event, arg) => {
return napcat.NCgetWebUiUrl();
});
ipcMain.on('open_external_url', (event, url) => {
shell.openExternal(url);
});