fix: 修复 web-batch2 文件内字面 \\n 导致的语法错误
This commit is contained in:
1 parent
4c84674b29
commit
d6165c910c
1 file changed
+4
-1
@@ -71,7 +71,9 @@ register(["Element_ElementAarray", "Element_ElementCaptureSimilar"], async (ctx,
|
|||||||
});
|
});
|
||||||
ctx.log("已获取 " + references.length + " 个相似元素(数组)", "info", node.id);
|
ctx.log("已获取 " + references.length + " 个相似元素(数组)", "info", node.id);
|
||||||
return references;
|
return references;
|
||||||
});\n\nregister("Element_StartAutoClosePopup", async (ctx, node) => {
|
});
|
||||||
|
|
||||||
|
register("Element_StartAutoClosePopup", async (ctx, node) => {
|
||||||
const browser = await browserSession();
|
const browser = await browserSession();
|
||||||
const started = browser.startAutoCloseDialogs();
|
const started = browser.startAutoCloseDialogs();
|
||||||
ctx.log(started ? "弹窗自动关闭已开启" : "弹窗自动关闭已在运行中", "info", node.id);
|
ctx.log(started ? "弹窗自动关闭已开启" : "弹窗自动关闭已在运行中", "info", node.id);
|
||||||
@@ -84,3 +86,4 @@ register("Element_StopAutoClosePopup", async (ctx, node) => {
|
|||||||
ctx.log(stopped ? "弹窗自动关闭已停止" : "弹窗自动关闭未在运行", "info", node.id);
|
ctx.log(stopped ? "弹窗自动关闭已停止" : "弹窗自动关闭未在运行", "info", node.id);
|
||||||
return { active: false, stopped };
|
return { active: false, stopped };
|
||||||
});
|
});
|
||||||
|
|
||||||
Reference in new issue
Block a user