mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-09 04:06:27 -04:00
Fix failure to load main article when using history.back()
Former-commit-id: a92f8dd9a5ae197d0f937fa38b4b392cfee185e9 [formerly 22b02ba6535469d783178d8bf07e8833d7fc5437] Former-commit-id: a3ccb9dad4c511d71498290ac3c875a1b5f25b50
This commit is contained in:
parent
a83a4d29af
commit
35a7df2cd1
@ -3517,6 +3517,10 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'utf8', 'images', 'cooki
|
||||
//This removes any search highlighting
|
||||
clearFindInArticle();
|
||||
document.getElementById('searchingArticles').style.display = 'block';
|
||||
if (~title.indexOf(params.cachedStartPage)) {
|
||||
goToMainArticle();
|
||||
return;
|
||||
}
|
||||
state.selectedArchive.getDirEntryByTitle(title).then(function (dirEntry) {
|
||||
if (dirEntry === null || dirEntry === undefined) {
|
||||
document.getElementById('searchingArticles').style.display = 'none';
|
||||
|
Loading…
x
Reference in New Issue
Block a user