Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/renderer/actions/apps/browsers/chromium-based-browsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ const getChromiumLaunchOptions = async (
.invoke("get-storage-object", "blocked_domains")
.then((blockedDomains) => {
console.log("Blocked domains", blockedDomains);
return blockedDomains;
return blockedDomains || [];
})
.then((blockListHostDomains) => {
return [
...blockListHostDomains,
...blockListHostDomains.map((domain) => `*.${domain}`),
];
})
.catch((err) => {
console.error(err);
Expand All @@ -56,7 +62,7 @@ const getChromiumLaunchOptions = async (
// Force even localhost requests to go through the proxy
// See https://bugs.chromium.org/p/chromium/issues/detail?id=899126#c17
"<-loopback>",
...(blockList || []),
...blockList,
// Don't intercept our warning hiding requests. Note that this must be
// the 2nd rule here, or <-loopback> would override it.
// hideWarningServer.host,
Expand Down