发送消息、窗口管理统一通过句柄操作

This commit is contained in:
fofolee
2025-01-18 11:18:08 +08:00
parent 7a7cb8dd54
commit 0ee3647261
6 changed files with 1140 additions and 1183 deletions

View File

@@ -123,7 +123,10 @@ async function runAutomation(
}
}
} catch (err) {
error = err.toString().trim();
error = err
.toString()
.replace(/^Error: /, "")
.trim();
}
if (type === "inspect") return { error };