1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Avoid Javascript error if unable to download full contents

This commit is contained in:
Frédéric Guillot 2017-12-27 19:45:59 -08:00
parent c454f67037
commit cc0acabfe0
4 changed files with 14 additions and 12 deletions

View file

@ -354,7 +354,9 @@ class EntryHandler {
element.dataset.completed = true;
response.json().then((data) => {
document.querySelector(".entry-content").innerHTML = data.content;
if (data.hasOwnProperty("content")) {
document.querySelector(".entry-content").innerHTML = data.content;
}
});
});
request.execute();