new(all): Auto import for logo, colors and website content.
This commit is contained in:
parent
4335dfc1c0
commit
082651e316
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue