Remove {root} from book item's link in library

The OPDS stream now provides full URL, including the custom root
Appending {root} duplicates the custom root, when given resulting in a broken link
This commit is contained in:
Nikhil Tanwar 2022-01-14 17:11:42 +05:30 committed by Emmanuel Engelhart
parent 367e5d2636
commit a8a68c54a2
No known key found for this signature in database
GPG Key ID: 120B30D020B553D3
1 changed files with 2 additions and 2 deletions

View File

@ -104,9 +104,9 @@
if (sort) { if (sort) {
divTag.setAttribute('data-idx', bookOrderMap.get(id)); divTag.setAttribute('data-idx', bookOrderMap.get(id));
} }
const faviconAttr = iconUrl != undefined ? `style="background-image: url('${root}${iconUrl}')"` : ''; const faviconAttr = iconUrl != undefined ? `style="background-image: url('${iconUrl}')"` : '';
const languageAttr = language != '' ? '' : 'style="background-color: transparent"'; const languageAttr = language != '' ? '' : 'style="background-color: transparent"';
divTag.innerHTML = `<a class="book__link" href="${root}${link}" data-hover="Preview"> divTag.innerHTML = `<a class="book__link" href="${link}" data-hover="Preview">
<div class="book__wrapper"> <div class="book__wrapper">
<div class="book__icon" ${faviconAttr}></div> <div class="book__icon" ${faviconAttr}></div>
<div class="book__header"> <div class="book__header">