mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-15 15:19:59 +08:00
扩展浏览器标签页管理功能:实现创建新标签页和关闭标签页的命令,支持通过URL、标题和ID进行标签页操作
This commit is contained in:
@@ -225,7 +225,7 @@ const executeScript = async (script, args = {}) => {
|
||||
const argValues = Object.values(args).map((v) => JSON.stringify(v));
|
||||
|
||||
const wrappedScript = `
|
||||
(function(${argNames.join(", ")}) {
|
||||
(async function(${argNames.join(", ")}) {
|
||||
${script}
|
||||
})(${argValues.join(", ")})
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user