This commit is contained in:
2026-09-20 23:35:03 +08:00
parent 941ce4baab
commit 388c700996
19 changed files with 393 additions and 71 deletions

View File

@@ -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) {