Parcourir la source

fix: clipboard block not working firefox

Ahmad Kholid il y a 2 ans
Parent
commit
720c966f3b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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({