diff --git a/www/js/app.js b/www/js/app.js index 2f987f84..317ba7ea 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -4941,8 +4941,8 @@ function displayArticleContentInContainer (dirEntry, htmlArticle) { // Put site.js in the correct position htmlArticle = htmlArticle.replace(/(]+\/site\.js["']><\/script>\s*)((?:[^<]|<(?!\/body))+)/, '$2$1'); // @TODO Remove when fixed in https://github.com/openzim/mwoffliner/issues/1872 - // Add missing title to Wikivoyage articles for post June 2023 scrapes - htmlArticle = /wikivoyage_en/.test(appstate.selectedArchive._file.name) && !/]+section-heading/i.test(htmlArticle) ? htmlArticle.replace(/(]+>\s*)/i, '$1

' + dirEntry.getTitleOrUrl() + '

') : htmlArticle; + // Add missing title to WikiMedia articles for post June 2023 scrapes + htmlArticle = !params.isLandingPage && !/]+section-heading/i.test(htmlArticle) ? htmlArticle.replace(/(]+>\s*)/i, '$1

' + dirEntry.getTitleOrUrl() + '

') : htmlArticle; } // Gutenberg ZIMs try to initialize before all assets are fully loaded. Affect UWP app.