From 3945f078ed0e19baed9abd50f616f15f5fd7770a Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Tue, 7 Jun 2022 17:00:51 +0100 Subject: [PATCH] Prevent removePageMaxWidth if Zimit ZIM and auto Former-commit-id: 0f60f83eb1ec6ac26b6c34ee08368c83f2f4de89 [formerly ebbb088ba43d2f27f702b264737fe8ec3428108b [formerly 62e4a607b8deb41f6153fa3bb3b4341189c6f148]] Former-commit-id: 408190d9ffa6e5e6bbea31a654f570459d270af6 [formerly b0b9714b8ac3944dc5edd992e68e14ff308fe575] Former-commit-id: 6edd659de4f31f109e0d99a003aae6a09df7edb6 --- www/js/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/js/app.js b/www/js/app.js index cddb4ee3..f3610675 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -1749,6 +1749,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'utf8', 'cache', 'images * @returns {String} A string containing the transformed HTML */ function removePageMaxWidth(html) { + if (params.zimType === 'zimit' && params.removePageMaxWidth === "auto") return html; var zimType; var cssSource; if (!html) {