Explorar el Código

fix: clipboard block not working firefox

Ahmad Kholid hace 2 años
padre
commit
720c966f3b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/workflowEngine/blocksHandler/handlerClipboard.js

+ 1 - 1
src/workflowEngine/blocksHandler/handlerClipboard.js

@@ -21,7 +21,7 @@ function doCommand(command, value) {
 }
 
 export default async function ({ data, id, label }) {
-  if (!this.engine.isPopup)
+  if (!this.engine.isPopup && !this.engins.isMV2)
     throw new Error('Clipboard block is not supported in background execution');
 
   const hasPermission = await browser.permissions.contains({