mirror of
https://github.com/kiwix/kiwix-js.git
synced 2025-09-24 04:54:51 -04:00
Fix failure to set expected article in SW mode
This commit is contained in:
parent
9409517222
commit
991d47af04
@ -2646,6 +2646,7 @@ function handleMessageChannelMessage (event) {
|
|||||||
if (/\bx?html/i.test(mimetype)) {
|
if (/\bx?html/i.test(mimetype)) {
|
||||||
// Calculate the current article's ZIM baseUrl to use when attaching popovers
|
// Calculate the current article's ZIM baseUrl to use when attaching popovers
|
||||||
appstate.baseUrl = encodeURI(dirEntry.namespace + '/' + dirEntry.url.replace(/[^/]+$/, ''));
|
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
|
// Ensure the article onload event gets attached to the right iframe
|
||||||
articleLoader();
|
articleLoader();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user