mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-09 12:19:46 -04:00
Fix images for Phet and Gutneberg ZIMs
Former-commit-id: c5d57d6de7acc9beb8165ff1f9765e5e05b002ca [formerly ff8f08e5660c5e8a26b9dc18d032b1ccee12a1d3] [formerly 612c8df3a9f2a4491a0acf1175cc33e6c84cab1a] [formerly 7ca7b98367d081a87ff9b4023468bc8c16486404 [formerly 424315f602354f5629056811b950506dbe3264b0 [formerly 0dda4beff25bd90517cc51b4956da1a40a497333]]] Former-commit-id: d6676c48bc3567814a45e8cfecd605be8b62abbd [formerly fcc05effb4b27f1e7ed0b3569ecd61524a875a93 [formerly afbc61864cac78079c878ed6cdf0e5b410ea0d32]] Former-commit-id: 884b948551950b0c80980c5acbd86819af989cf9 [formerly 41fa6668801047b06c72f1e7265d6a03c6cb2749] Former-commit-id: ebe2984549c35bfee91e3df9f487dc637304342c
This commit is contained in:
parent
2ff7082d25
commit
a6a73f9915
@ -3752,6 +3752,10 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'sett
|
||||
} else {
|
||||
var mimetype = dirEntry.getMimetype();
|
||||
var imageDisplayMode = params.imageDisplayMode;
|
||||
// These ZIM types have so much dynamic content that we have to allow all images
|
||||
if (params.imageDisplay && (/gutenberg|phet/i.test(appstate.selectedArchive._file.name) || params.isLandingPage)) {
|
||||
imageDisplayMode = 'all';
|
||||
}
|
||||
// console.debug('Spinner should show now: [' + mimetype + '] ' + title);
|
||||
if (/\b(css|javascript|video|vtt|webm)\b/i.test(mimetype)) {
|
||||
var shortTitle = dirEntry.url.replace(/[^/]+\//g, '').substring(0, 18);
|
||||
|
Loading…
x
Reference in New Issue
Block a user