fixes for tls

pull/29/head
Matthew 2020-12-25 21:34:07 -05:00
parent 7a3ff32122
commit 87746008b4
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ export default class TLS extends Command {
} catch {
const att = site('link').toArray().filter((a) => a.attribs.rel === 'icon');
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}`;
} else {
iconURI = att[0].attribs.href;