update
This commit is contained in:
@@ -35,6 +35,9 @@ ipcMain.handle('theme:set-follow-system', () => ({ theme: cfg.theme, accent: cfg
|
||||
// invoke 会抛错,渲染层的 catch 打 console.error,被下面的"无脚本错误"
|
||||
// 断言当成 SyntaxError 一类的致命问题误杀。
|
||||
ipcMain.handle('theme:subscribe', () => true);
|
||||
// settings.js 启动时还会拉标题栏图标(window.api.getAppIcon -> app:get-icon),
|
||||
// stub 缺这个 handler 同样打一条未捕获错误噪音;返回空串表示图标缺失(静默路径)。
|
||||
ipcMain.handle('app:get-icon', () => '');
|
||||
|
||||
let failed = 0;
|
||||
function check(name, fn) {
|
||||
|
||||
Reference in New Issue
Block a user