From b9585004e68fdd7718e042083a4d9fb2dc351e0c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 30 Nov 2018 13:56:33 +0300 Subject: packed headlines: no point in using JSON here --- js/viewfeed.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'js/viewfeed.js') diff --git a/js/viewfeed.js b/js/viewfeed.js index 4d6566961..072f6c9cb 100755 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -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"); -- cgit v1.2.3