From 87746008b4e0fd2c8bcb2ebc2969734bf3a275d9 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Fri, 25 Dec 2020 21:34:07 -0500 Subject: [PATCH] fixes for tls --- src/commands/tls.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/tls.ts b/src/commands/tls.ts index 662f985..0b3aae3 100644 --- a/src/commands/tls.ts +++ b/src/commands/tls.ts @@ -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;