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
This commit is contained in:
Jaifroid 2022-06-07 17:00:51 +01:00
parent 08cbdf6fcb
commit 3945f078ed

View File

@ -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) {