diff --git a/www/js/app.js b/www/js/app.js index fb3d0f61..cdb3cc7c 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -3210,7 +3210,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'sett // Remove the script.js that closes top-level sections if user requested this if (params.openAllSections) htmlArticle = htmlArticle.replace(/]+-\/(j\/js_modules\/)?script\.js"[^<]*<\/script>/i, ""); // Remove landing page scripts that don't work in SW mode - if (params.cssCache) htmlArticle = htmlArticle.replace(/]+-\/j\/js_modules\/((?:images_loaded|masonry)\.min|article_list_home)\.js"[^<]*<\/script>/gi, ""); + if (params.cssCache) htmlArticle = htmlArticle.replace(/]+-\/[^>]*((?:images_loaded|masonry)\.min|article_list_home)\.js"[^<]*<\/script>/gi, ""); //Remove empty div that causes layout issues in desktop style htmlArticle = htmlArticle.replace(/]*?>\s*<\/div>\s*/, '');