Skip to content

Commit 1f4b189

Browse files
committed
fix: account for undefined InjectionResult
1 parent c027089 commit 1f4b189

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ async function executeScript({
9292
const results = await browser.scripting.executeScript(params);
9393

9494
if (unwrapResults) {
95-
return results.map(item => item.result);
95+
return results.map(item => item?.result);
9696
} else {
9797
return results;
9898
}

0 commit comments

Comments
 (0)