*check hostname not url

This commit is contained in:
Derrick Hammer 2022-08-22 01:50:26 -04:00
parent eac9e7b579
commit 1ef168cd9e
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}