Skip to content

Commit

Permalink
Fix failure to set expected article in SW mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid committed Aug 28, 2024
1 parent 9409517 commit 991d47a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 991d47a

Please sign in to comment.