fix: enable file monitor for macOS (remove platform restriction)

This commit is contained in:
hicccc77
2026-03-12 22:48:16 +08:00
parent 2776a1a5ce
commit 4e80f93b30

View File

@@ -148,13 +148,8 @@ export class WcdbCore {
}
}
// 使用命名管道 IPC (Windows)
// 使用命名管道/socket IPC (Windows: Named Pipe, macOS: Unix Socket)
startMonitor(callback: (type: string, json: string) => void): boolean {
if (process.platform !== 'win32') {
console.warn('[wcdbCore] Monitor not supported on macOS')
return false
}
if (!this.wcdbStartMonitorPipe) {
return false
}