fixes for tls
parent
7a3ff32122
commit
87746008b4
|
@ -90,7 +90,7 @@ export default class TLS extends Command {
|
||||||
} catch {
|
} catch {
|
||||||
const att = site('link').toArray().filter((a) => a.attribs.rel === 'icon');
|
const att = site('link').toArray().filter((a) => a.attribs.rel === 'icon');
|
||||||
if (att?.length > 0) {
|
if (att?.length > 0) {
|
||||||
if (att[0].attribs.href.startsWith('/')) {
|
if (att[0].attribs.href.startsWith('/') || !att[0].attribs.href.startsWith('http')) {
|
||||||
iconURI = `https://${args[0]}${att[0].attribs.href}`;
|
iconURI = `https://${args[0]}${att[0].attribs.href}`;
|
||||||
} else {
|
} else {
|
||||||
iconURI = att[0].attribs.href;
|
iconURI = att[0].attribs.href;
|
||||||
|
|
Loading…
Reference in New Issue