diff --git a/www/js/app.js b/www/js/app.js index c0089a13..7ba6f58a 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -6498,10 +6498,10 @@ function displayArticleContentInContainer (dirEntry, htmlArticle) { // Extract CSS URLs from given array of links function getBLOB (arr) { var testCSS = arr.join(); - zimType = /-\/s\/style\.css/i.test(testCSS) ? 'desktop' : zimType; + zimType = /-\/s\/style\.css|vector/i.test(testCSS) ? 'desktop' : zimType; zimType = /-\/static\/main\.css|statc\/css\/sotoki.css/i.test(testCSS) ? 'desktop-stx' : zimType; // Support stackexchange zimType = /gutenberg\.css/i.test(testCSS) ? 'desktop-gtb' : zimType; // Support Gutenberg - zimType = /minerva|mobile|vector/i.test(testCSS) ? 'mobile' : zimType; + zimType = /minerva|mobile/i.test(testCSS) ? 'mobile' : zimType; cssSource = cssSource == 'auto' ? zimType : cssSource; // Default to in-built zimType if user has selected automatic detection of styles if (/minerva|inserted.style|pcs\.css/i.test(testCSS) && (cssCache || zimType != cssSource)) { // Substitute ridiculously long style name TODO: move this code to transformStyles