Explorar o código

fix: switch tab block not working

Ahmad Kholid %!s(int64=2) %!d(string=hai) anos
pai
achega
fbef7a9a29
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/workflowEngine/blocksHandler/handlerSwitchTab.js

+ 2 - 1
src/workflowEngine/blocksHandler/handlerSwitchTab.js

@@ -23,7 +23,8 @@ export default async function ({ data, id }) {
   }
 
   const isTabsQuery = ['match-patterns', 'tab-title'];
-  const tabs = findTabBy !== 'match-patterns' ? await browser.tabs.query() : [];
+  const tabs =
+    findTabBy !== 'match-patterns' ? await browser.tabs.query({}) : [];
 
   if (isTabsQuery.includes(findTabBy)) {
     const query = {};