mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Merge pull request #16630 from Rob--W/crx-url-hash-init
Correct recognition of fragments at document load
This commit is contained in:
commit
42edc4d895
2 changed files with 12 additions and 1 deletions
|
@ -42,6 +42,9 @@ if (typeof PDFJSDev === "undefined" || !PDFJSDev.test("CHROME")) {
|
|||
}
|
||||
|
||||
AppOptions.set("defaultUrl", defaultUrl);
|
||||
// Ensure that PDFViewerApplication.initialBookmark reflects the current hash,
|
||||
// in case the URL rewrite above results in a different hash.
|
||||
PDFViewerApplication.initialBookmark = location.hash.slice(1);
|
||||
})();
|
||||
|
||||
const ChromeCom = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue