Skip to content

Commit e443d1a

Browse files
committed
Fix error for add site to black list
1 parent 36be759 commit e443d1a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/settings.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ function addNewBlackSiteClickHandler() {
8484
var newBlackSite = document.getElementById('addBlackSiteLbl').value;
8585
if (newBlackSite !== '') {
8686
addDomainToListBox(newBlackSite);
87+
if (blackList === undefined)
88+
blackList = [];
8789
blackList.push(newBlackSite);
8890
document.getElementById('addBlackSiteLbl').value = '';
8991
}

0 commit comments

Comments
 (0)