Fix failure to set expected article in SW mode

This commit is contained in:
Jaifroid 2024-08-28 10:04:45 +03:00
parent 9409517222
commit 991d47af04

View File

@ -2646,6 +2646,7 @@ function handleMessageChannelMessage (event) {
if (/\bx?html/i.test(mimetype)) {
// Calculate the current article's ZIM baseUrl to use when attaching popovers
appstate.baseUrl = encodeURI(dirEntry.namespace + '/' + dirEntry.url.replace(/[^/]+$/, ''));
appstate.expectedArticleURLToBeDisplayed = dirEntry.namespace + '/' + dirEntry.url;
}
// Ensure the article onload event gets attached to the right iframe
articleLoader();