Skip to content

Commit

Permalink
add missing return if whitelist entry is found.
Browse files Browse the repository at this point in the history
  • Loading branch information
smeinecke committed Feb 3, 2025
1 parent a30a6d0 commit 6af142d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/js/lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ function lookup(domainInput) {

if (data.whitelist) {
showMessage(`Domain ${escapeHtml(data.domain)} is excluded by <a href="https://github.com/disposable/disposable/blob/master/whitelist.txt" target="_blank">whitelist</a>.`, 'success');
return;
}

let msg = `<h1>Domain ${data.domain} ${data.strict ? 'is on <a href="https://github.com/disposable/disposable?tab=readme-ov-file#strict-mode" target="_blank">strict mode list</a>' :
Expand Down

0 comments on commit 6af142d

Please sign in to comment.