Delete redundant calls

Former-commit-id: 056038bee97ac644f4a8becee49b8cb5d02a5552 [formerly d8e380c569b434326d64d94f32e6c0ee91351d3e]
Former-commit-id: b1f7f3027a6102c2bc882ba8a6ae225969ba8ccc
This commit is contained in:
Jaifroid 2018-11-24 19:34:58 +00:00
parent 59e98f42d7
commit 6148e739f9

View File

@ -2169,17 +2169,11 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies', 'q', 'module'
iframeArticleContent.onload = function () {
//iframeArticleContent.onload = function () { };
$("#articleList").empty();
$('#articleListHeaderMessage').empty();
$('#articleListWithHeader').hide();
$("#prefix").val("");
var articleContent = document.getElementById('articleContent').contentDocument;
// Inject the new article's HTML into the iframe
articleContent.documentElement.innerHTML = htmlArticle;
// Add any missing classes stripped from the <html> tag
if (htmlCSS) articleContent.getElementsByTagName('body')[0].classList.add(htmlCSS);
// Allow back/forward in browser history
pushBrowserHistoryState(dirEntry.namespace + "/" + dirEntry.url);
//Set relative font size + Stackexchange-family multiplier
articleContent.body.style.fontSize = ~zimType.indexOf("stx") ? params.relativeFontSize * 1.5 + "%" : params.relativeFontSize + "%";