Skip to content

Commit 32149b9

Browse files
author
hoang.tran12
committed
fix iterable
1 parent b3a9cf1 commit 32149b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

popup/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ async function runScript(script) {
244244
recentScriptsSaver.add(script);
245245
runScriptInCurrentTab(script.func);
246246
} else {
247-
let w = script.whiteList?.join(", ");
248-
let b = [...script.blackList, ...GlobalBlackList]?.join(", ");
247+
let w = script?.whiteList?.join(", ");
248+
let b = [...(script?.blackList || []), ...GlobalBlackList]?.join(", ");
249249

250250
openModal(
251251
t({

0 commit comments

Comments
 (0)