1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 11:05:56 +00:00

packed headlines: no point in using JSON here

This commit is contained in:
Andrew Dolgov
2018-11-30 13:56:33 +03:00
parent 7673331850
commit b9585004e6
3 changed files with 12 additions and 82 deletions

View File

@@ -1013,13 +1013,7 @@ function unpackVisibleHeadlines() {
if (row.offsetTop <= $("headlines-frame").scrollTop + $("headlines-frame").offsetHeight) {
console.log("unpacking: " + row.id);
let content;
try {
content = JSON.parse(row.getAttribute("data-content"));
} catch (e) {
content = "Error decoding content: " + row.getAttribute("data-content");
}
const content = row.getAttribute("data-content");
row.select(".cdmContentInner")[0].innerHTML = content;
row.removeAttribute("data-content");