mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-08 03:37:12 -04:00
Fix opening pages in new window after zimit
This commit is contained in:
parent
841d483350
commit
c193313a21
@ -7100,7 +7100,7 @@ function addListenersToLink (a, href, baseUrl) {
|
|||||||
zimUrl = uiUtil.deriveZimUrlFromRelativeUrl(uriComponent, baseUrl);
|
zimUrl = uiUtil.deriveZimUrlFromRelativeUrl(uriComponent, baseUrl);
|
||||||
}
|
}
|
||||||
// @TODO: We are getting double activations of the click event. This needs debugging. For now, we use a flag to prevent this.
|
// @TODO: We are getting double activations of the click event. This needs debugging. For now, we use a flag to prevent this.
|
||||||
a.newcontainer = true; // Prevents double activation
|
// a.newcontainer = true; // Prevents double activation
|
||||||
// uiUtil.showSlidingUIElements();
|
// uiUtil.showSlidingUIElements();
|
||||||
// Tear down contents of articleWindow.document
|
// Tear down contents of articleWindow.document
|
||||||
if (!/UWP/.test(params.appType) && articleWindow && articleWindow.document && articleWindow.document.body) {
|
if (!/UWP/.test(params.appType) && articleWindow && articleWindow.document && articleWindow.document.body) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user