Skip to content

Commit

Permalink
fix: JS block not working in background execution (AutomaApp#1134)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kholid060 committed Jan 30, 2023
1 parent 8dc4d3d commit 405c25f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workflowEngine/blocksHandler/handlerJavascriptCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 405c25f

Please sign in to comment.