diff --git a/src/workflowEngine/blocksHandler/handlerJavascriptCode.js b/src/workflowEngine/blocksHandler/handlerJavascriptCode.js index 02b62c935..ba22921c3 100644 --- a/src/workflowEngine/blocksHandler/handlerJavascriptCode.js +++ b/src/workflowEngine/blocksHandler/handlerJavascriptCode.js @@ -167,7 +167,7 @@ export async function javascriptCode({ outputs, data, ...block }, { refData }) { const inSandbox = BROWSER_TYPE !== 'firefox' && data.context === 'background' && - this.engine.isPopup; + (this.engine.isMV2 || this.engine.isPopup); const result = await (inSandbox ? messageSandbox('javascriptBlock', { instanceId,