mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Set page number instead of window.scrollTo, and remove Cookie reference
This commit is contained in:
parent
e147485262
commit
83cb12be7f
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ var Cache = function cacheCache(size) {
|
|||
|
||||
// Settings Manager - This is a utility for saving settings
|
||||
// First we see if localStorage is available, FF bug #495747
|
||||
// If not, we use FUEL in FF and fallback to Cookies for other browsers.
|
||||
// If not, we use FUEL in FF
|
||||
var Settings = (function SettingsClosure() {
|
||||
var isLocalStorageEnabled = (function localStorageEnabledTest() {
|
||||
try {
|
||||
|
@ -390,7 +390,7 @@ var PDFView = {
|
|||
else if (storedHash) {
|
||||
this.setHash(storedHash);
|
||||
} else
|
||||
window.scrollTo(0, 0); // Scroll to top is default.
|
||||
this.page = 1;
|
||||
},
|
||||
|
||||
setHash: function pdfViewSetHash(hash) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue