diff --git a/src/scripts/sidebar.js b/src/scripts/sidebar.js index 0ae57776fc..8b6a72b90b 100644 --- a/src/scripts/sidebar.js +++ b/src/scripts/sidebar.js @@ -168,7 +168,7 @@ class SideBar extends EventEmitter { setImage(hostUrl) { const img = this.getByUrl(hostUrl).querySelector('img'); - img.src = `${ hostUrl }/assets/favicon.svg?v=${ Math.round(Math.random() * 10000) }`; + img.src = `${ hostUrl.replace(/\/$/, '') }/assets/favicon.svg?v=${ Math.round(Math.random() * 10000) }`; } remove(hostUrl) {