Explorar o código

fix: clipboard block not working firefox

Ahmad Kholid %!s(int64=2) %!d(string=hai) anos
pai
achega
720c966f3b
Modificáronse 1 ficheiros con 1 adicións e 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({