fix(whatsapp.lib): Sending of images in official.
This commit is contained in:
parent
215d9aba4d
commit
7bd264c82a
1 changed files with 5 additions and 2 deletions
|
@ -919,7 +919,10 @@ export class KBService implements IGBKBService {
|
||||||
try {
|
try {
|
||||||
// Check if urlToCheck contains any of the ignored URLs
|
// Check if urlToCheck contains any of the ignored URLs
|
||||||
|
|
||||||
const isIgnored = websiteIgnoreUrls.split(';').some(ignoredUrl => p.href.includes(ignoredUrl));
|
var isIgnored = false;
|
||||||
|
if (websiteIgnoreUrls){
|
||||||
|
websiteIgnoreUrls.split(';').some(ignoredUrl => p.href.includes(ignoredUrl));
|
||||||
|
}
|
||||||
|
|
||||||
return !isIgnored && currentDomain == new URL(p.href).hostname;
|
return !isIgnored && currentDomain == new URL(p.href).hostname;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
@ -1024,7 +1027,7 @@ export class KBService implements IGBKBService {
|
||||||
let files = [];
|
let files = [];
|
||||||
|
|
||||||
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<[]>(min.instance, 'Website Ignore URLs', []);
|
const websiteIgnoreUrls = min.core.getParam<[]>(min.instance, 'Website Ignore URLs', null);
|
||||||
|
|
||||||
if (website) {
|
if (website) {
|
||||||
// Removes last slash if any.
|
// Removes last slash if any.
|
||||||
|
|
Loading…
Add table
Reference in a new issue