new(all): Auto import for logo, colors and website content.

This commit is contained in:
Rodrigo Rodriguez 2024-05-24 14:52:46 -03:00
parent 4335dfc1c0
commit 082651e316

View file

@ -918,7 +918,7 @@ export class KBService implements IGBKBService {
const anchors = Array.from(document.querySelectorAll('a')).filter(p => { const anchors = Array.from(document.querySelectorAll('a')).filter(p => {
try { try {
return currentDomain == new URL(p.href).hostname; return currentDomain == new URL(p.href).hostname.toLocaleLowerCase();
} catch (err) { } catch (err) {
return false; return false;
} }
@ -1023,6 +1023,7 @@ export class KBService implements IGBKBService {
let website = min.core.getParam<string>(min.instance, 'Website', null); let website = min.core.getParam<string>(min.instance, 'Website', null);
const websiteIgnoreUrls = min.core.getParam<string>(min.instance, 'Website Ignore URLs', null); const websiteIgnoreUrls = min.core.getParam<string>(min.instance, 'Website Ignore URLs', null);
if (website) {
// Removes last slash if any. // Removes last slash if any.