Skip to content

Commit

Permalink
Handle newlines in disabled domains
Browse files Browse the repository at this point in the history
  • Loading branch information
getvictor committed Aug 3, 2024
1 parent fd5478f commit 82c67b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ chrome.storage.sync.get(null, (data) => {
disabledDomainsElement.value = disabledDomains
disabledDomainsElement.addEventListener("change", (event) => {
if (event.target instanceof HTMLTextAreaElement) {
const value = event.target.value.trim()
const value = event.target.value.trim().replace(/\n/g, ",")
const domains = value
.split(",")
.map((domain) => domain.trim())
Expand Down

0 comments on commit 82c67b2

Please sign in to comment.