Skip to content

Commit

Permalink
Add querystring for zimit2 as well
Browse files Browse the repository at this point in the history
Zimit2 querystrings are currently over-encoded and included in the title. But this may not always be the case. See openzim/warc2zim#206.
  • Loading branch information
Jaifroid committed Mar 15, 2024
1 parent 55a6d4f commit 32db50f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2331,7 +2331,7 @@ function handleMessageChannelMessage (event) {
// We received a message from the ServiceWorker
// The ServiceWorker asks for some content
var title = event.data.title;
if (selectedArchive.zimType === 'zimit') {
if (/zimit/.test(selectedArchive.zimType)) {
// Zimit ZIMs store assets with the querystring, so we need to add it!
title = title + event.data.search;
}
Expand Down

0 comments on commit 32db50f

Please sign in to comment.