Skip to content

Commit

Permalink
Clear document body with DOM methods #361
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid committed Apr 30, 2018
1 parent a25645d commit bcac0ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,7 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies','abstractFiles
$("#articleName").html(title);
$("#readingArticle").show();
//$('#articleContent').contents().find('body').html("");
document.getElementById('articleContent').contentDocument.body.innerHTML = "";
readArticle(dirEntry);
}
}).fail(function() { alert("Error reading article with title " + title); });
Expand Down

0 comments on commit bcac0ef

Please sign in to comment.