diff --git a/src/webEngine.ts b/src/webEngine.ts index f128c9a..8ed601e 100644 --- a/src/webEngine.ts +++ b/src/webEngine.ts @@ -195,13 +195,13 @@ export default class WebEngine { return; } - if (!isDomain(details.url) || isIp(details.url)) { - return; - } - const originalUrl = new URL(details.url); const hostname = normalizeDomain(originalUrl.hostname); + if (!isDomain(hostname) || isIp(hostname)) { + return; + } + if (["chrome:"].includes(originalUrl.protocol)) { return; }