mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-11 13:18:21 -04:00
Delete redundant calls
Former-commit-id: 056038bee97ac644f4a8becee49b8cb5d02a5552 [formerly d8e380c569b434326d64d94f32e6c0ee91351d3e] Former-commit-id: b1f7f3027a6102c2bc882ba8a6ae225969ba8ccc
This commit is contained in:
parent
59e98f42d7
commit
6148e739f9
@ -2169,17 +2169,11 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies', 'q', 'module'
|
|||||||
|
|
||||||
iframeArticleContent.onload = function () {
|
iframeArticleContent.onload = function () {
|
||||||
//iframeArticleContent.onload = function () { };
|
//iframeArticleContent.onload = function () { };
|
||||||
$("#articleList").empty();
|
|
||||||
$('#articleListHeaderMessage').empty();
|
|
||||||
$('#articleListWithHeader').hide();
|
|
||||||
$("#prefix").val("");
|
|
||||||
var articleContent = document.getElementById('articleContent').contentDocument;
|
var articleContent = document.getElementById('articleContent').contentDocument;
|
||||||
// Inject the new article's HTML into the iframe
|
// Inject the new article's HTML into the iframe
|
||||||
articleContent.documentElement.innerHTML = htmlArticle;
|
articleContent.documentElement.innerHTML = htmlArticle;
|
||||||
// Add any missing classes stripped from the <html> tag
|
// Add any missing classes stripped from the <html> tag
|
||||||
if (htmlCSS) articleContent.getElementsByTagName('body')[0].classList.add(htmlCSS);
|
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
|
//Set relative font size + Stackexchange-family multiplier
|
||||||
articleContent.body.style.fontSize = ~zimType.indexOf("stx") ? params.relativeFontSize * 1.5 + "%" : params.relativeFontSize + "%";
|
articleContent.body.style.fontSize = ~zimType.indexOf("stx") ? params.relativeFontSize * 1.5 + "%" : params.relativeFontSize + "%";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user