From d714f6b9d99956c54ca9021ff9c9121b1f425e9d Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Mon, 28 Feb 2022 08:17:44 +0000 Subject: [PATCH] Fix undefined variable Former-commit-id: 3ae231a59a861f1e93ae7d01ed0be5eeb8779575 [formerly 1ea809212356498d2a4a533359c814c58dec27ba] [formerly 74a628465274668371be4738d2228e7edc8aa7e8] [formerly 9ba0913d7b133fb66e54e45df9e69289aeab653f [formerly 847e52b09d20b99433721ba419c94a68dd9d5eb5 [formerly 6c122078dfd1196ebbeabe5a7fecc2ac3049fd18]]] Former-commit-id: 615e643c8c16e8144509830f88d610b718933c2d [formerly 5f48e83b0e0c74daa409e2eaa373779ab3bf0e55 [formerly 8805b0df22db763b853a53a4025a18b644eba6ec]] Former-commit-id: d31784fa7b8bfea3d0ca880cda9d724dc8d65d2f [formerly 92455eb83501914daedf69a01c73355134240e53] Former-commit-id: f99a9a78b1cc806bb4f9b0529130d67240c72c96 --- www/js/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/js/app.js b/www/js/app.js index 478fbee2..1190d9ec 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -3753,12 +3753,12 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'sett function postTransformedHTML(thisMessage, thisMessagePort, thisDirEntry) { if (params.transformedHTML && /]*>/.test(params.transformedHTML)) { // Because UWP app window can only be controlled from the Service Worker, we have to allow all images - // to be called from any external windows. NB messageChannelWaiting is only true when user requested article from a window + // to be called from any external windows. NB messageChannelWaiting is only true when user requested article from a UWP window if (/UWP/.test(params.appType) && (appstate.target === 'window' || appstate.messageChannelWaiting) && - params.imageDisplay) { imageDisplayMode = 'all'; } + params.imageDisplay) { thisMessage.imageDisplay = 'all'; } // We need to do the same for Gutenberg and PHET ZIMs if (/gutenberg|phet/i.test(appstate.selectedArchive._file.name)) { - imageDisplayMode = 'all'; + thisMessage.imageDisplay = 'all'; } appstate.messageChannelWaiting = false; // Let's send the content to the ServiceWorker