mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-04-22 11:42:15 +00:00
Update script-terminal-modal.tsx
This commit is contained in:
@@ -283,12 +283,15 @@ const initMessage = {
|
||||
}
|
||||
}, 30000)
|
||||
|
||||
const initMessage = {
|
||||
script_path: scriptPath,
|
||||
params,
|
||||
}
|
||||
|
||||
ws.send(JSON.stringify(initMessage))
|
||||
// Small delay to ensure paramsRef is updated with latest props
|
||||
setTimeout(() => {
|
||||
const initMessage = {
|
||||
script_path: scriptPath,
|
||||
params: paramsRef.current,
|
||||
}
|
||||
console.log("[v0] WS onopen - Sending params:", paramsRef.current)
|
||||
ws.send(JSON.stringify(initMessage))
|
||||
}, 50)
|
||||
|
||||
setTimeout(() => {
|
||||
if (fitAddonRef.current && termRef.current && ws.readyState === WebSocket.OPEN) {
|
||||
|
||||
Reference in New Issue
Block a user