bug fix: globalthis is mis-spelled. Removed this line.

This commit is contained in:
Luk 2025-04-08 15:27:26 +08:00
parent b7b8355ce1
commit 87b60bf581

View File

@ -25,9 +25,9 @@ module.exports = {
// 目前的解决方案里,已通过 base2app 参数来确保只在发送给前端时才设置 undefined但为防万一在这里通过 JSON.stringify 确保删除了 undefined
assign_deep(rawEnvar, JSON.parse(JSON.stringify(newEnvar)))
globalThis.wo?.cclog?.(`envarTool.start_watching: OK reload ${onpath}`)
globalthis.wo?.eventCenter?.emit?.('ENVAR_UPDATED', { envarFile: onpath })
} catch (expt) {
globalThis.wo?.cclog?.(`envarTool.start_watching: Fail reload ${onpath}`)
globalThis.wo?.ccerror?.(expt)
}
})
},