diff options
author | Andrew Dolgov <[email protected]> | 2018-11-30 13:56:33 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-11-30 13:56:33 +0300 |
commit | b9585004e68fdd7718e042083a4d9fb2dc351e0c (patch) | |
tree | 426ceff49ea12a5d14418552158c75b01d5ceb8e /js/viewfeed.js | |
parent | 76733318506542543b91c53458058c931e2fd7f4 (diff) |
packed headlines: no point in using JSON here
Diffstat (limited to 'js/viewfeed.js')
-rwxr-xr-x | js/viewfeed.js | 8 |
1 files changed, 1 insertions, 7 deletions
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"); |