From a8a68c54a2252e062656790c798fa5b65dd3ca86 Mon Sep 17 00:00:00 2001
From: Nikhil Tanwar <2002nikhiltanwar@gmail.com>
Date: Fri, 14 Jan 2022 17:11:42 +0530
Subject: [PATCH] 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
---
static/skin/index.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/static/skin/index.js b/static/skin/index.js
index b6504dd18..70cc86763 100644
--- a/static/skin/index.js
+++ b/static/skin/index.js
@@ -104,9 +104,9 @@
if (sort) {
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"';
- divTag.innerHTML = `
+ divTag.innerHTML = `