Skip to content

Commit

Permalink
fix: Fixing double append of ampersand
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Sep 11, 2022
1 parent f20e02a commit 112442f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/fibr/templates/async-image.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@
async function fetchThumbnail() {
let fetchURL = document.location.search;
if (fetchURL.includes('?')) {
fetchURL += '&thumbnail';
if (!fetchURL.endsWith("&")) {
fetchURL += '&';
}
fetchURL += 'thumbnail';
} else {
fetchURL += '?thumbnail';
}
Expand Down

0 comments on commit 112442f

Please sign in to comment.