Favicon Protocol Fix

This commit is contained in:
Joe Bellus 2022-02-16 00:02:17 +00:00
parent 2f6df56e82
commit a2737c3eec
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ export default {
favicon() { favicon() {
try { try {
const url = new URL(this.appData.url); const url = new URL(this.appData.url);
return `${url.protocol}${url.hostname}/favicon.ico`; return `${url.protocol}//${url.hostname}/favicon.ico`;
} catch { } catch {
return ""; return "";
} }

View File

@ -17,8 +17,8 @@ export default {
computed: { computed: {
favicon() { favicon() {
try { try {
const url = new URL(this.bookmark.url); const url = new URL(this.bookmark.url);
return `${url.protocol}${url.hostname}/favicon.ico`; return `${url.protocol}//${url.hostname}/favicon.ico`;
} catch { } catch {
return ""; return "";
} }