From 65327214106334e83cd7f3f399befad84b367ba8 Mon Sep 17 00:00:00 2001 From: Joe Bellus Date: Tue, 15 Feb 2022 18:56:45 -0500 Subject: [PATCH] Favicon Protocol Fix Fixed issue where favicons would not display properly across similar protocols --- src/ui/components/ApplicationTile.vue | 2 +- src/ui/components/BookmarkTile.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/components/ApplicationTile.vue b/src/ui/components/ApplicationTile.vue index 9e40740..8fb3dc5 100644 --- a/src/ui/components/ApplicationTile.vue +++ b/src/ui/components/ApplicationTile.vue @@ -16,7 +16,7 @@ export default { favicon() { try { const url = new URL(this.appData.url); - return `${url.protocol}${url.hostname}/favicon.ico`; + return `${url.protocol}//${url.hostname}/favicon.ico`; } catch { return ""; } diff --git a/src/ui/components/BookmarkTile.vue b/src/ui/components/BookmarkTile.vue index 38495e3..2913967 100644 --- a/src/ui/components/BookmarkTile.vue +++ b/src/ui/components/BookmarkTile.vue @@ -17,8 +17,8 @@ export default { computed: { favicon() { try { - const url = new URL(this.bookmark.url); - return `${url.protocol}${url.hostname}/favicon.ico`; + const url = new URL(this.bookmark.url); + return `${url.protocol}//${url.hostname}/favicon.ico`; } catch { return ""; }