From 54e5a429efc83075e3b8c3f148720dc48e45d578 Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Tue, 10 Jun 2025 05:44:36 +0100 Subject: [PATCH] Mark ActionParse as Desktop style Fixes #721 --- www/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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