Skip to content

Commit

Permalink
Merge pull request #922 from crazy-max/develop
Browse files Browse the repository at this point in the history
[FIX] Server icon not displayed on sidebar if server url ending with a trailing slash
  • Loading branch information
tassoevan authored Oct 15, 2018
2 parents 702f67b + a02b2de commit 6a8d8fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6a8d8fd

Please sign in to comment.