mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-24 23:06:51 +00:00
fix: enable file monitor for macOS (remove platform restriction)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user