]> git.parisson.com Git - pdf.js.git/commitdiff
Set page number instead of window.scrollTo, and remove Cookie reference
authorSaebekassebil <saebekassebil@gmail.com>
Mon, 26 Dec 2011 15:07:56 +0000 (16:07 +0100)
committerSaebekassebil <saebekassebil@gmail.com>
Mon, 26 Dec 2011 15:07:56 +0000 (16:07 +0100)
web/viewer.js

index 36b1299efb0b63a2b2d630d1ca90f0b3f4212a16..ebe93ead65ac1d03c3e3ec682888c17e6a571e2c 100644 (file)
@@ -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) {