]> git.wh0rd.org - tt-rss.git/blobdiff - js/viewfeed.js
packed headlines: no point in using JSON here
[tt-rss.git] / js / viewfeed.js
index 4d65669617416a86138eb479d144ccbef0cd97de..072f6c9cb02a373c41f1df68d012a1f12194ee75 100755 (executable)
@@ -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");