-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #119: direct link hack when inside an outer frame (kiwix-serve …
…3.5+) Every HTML entry gets injected with a small script that checks for SW. This redirects the page to the home page (with back redirect) in order to install the SW if it is not present (assuming a direct link to the HTML entry). This hack used to check for being run from the top most window (`window.top`) which was the case for older kiwix-serve. Now that kiwix-serve uses its own iframe, this condition was never met. This fixes in-frame behavior by removing the top-window check. I suppose the check was for safety only as all tests I conducted showed no regression; even with multiple layers of imbricated iframes
- Loading branch information
Showing
3 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters