Merge branch 'favicon-protocol-fix' into 'main'

Favicon Protocol Fix

See merge request vade/vade-mecum!8
This commit is contained in:
Joe Bellus 2022-02-16 00:02:19 +00:00
commit 9034c0d37c
2 changed files with 3 additions and 3 deletions

View File

@ -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 "";
}

View File

@ -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 "";
}