[Pkg-javascript-commits] [pdf.js] 89/204: Changed to lowercase everywhere the hashParams is compared

David Prévot taffit at moszumanska.debian.org
Sat Oct 25 18:50:36 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit 293d566f67b239f6b8e4f8117affe2b0130cba1d
Author: Manuel Padrón Martínez <manolopm at graph-ic.org>
Date:   Thu Sep 18 20:18:23 2014 +0100

    Changed to lowercase everywhere the hashParams is compared
---
 web/viewer.js | 40 ++++++++++++++++++++--------------------
 1 file changed, 20 insertions(+), 20 deletions(-)

diff --git a/web/viewer.js b/web/viewer.js
index b31378c..2a0b8e8 100644
--- a/web/viewer.js
+++ b/web/viewer.js
@@ -1769,45 +1769,45 @@ function webViewerInitialized() {
   var hash = document.location.hash.substring(1);
   var hashParams = PDFView.parseQueryString(hash);
 
-  if ('disableWorker' in hashParams) {
-    PDFJS.disableWorker = (hashParams['disableWorker'] === 'true');
+  if ('disableworker' in hashParams) {
+    PDFJS.disableWorker = (hashParams['disableworker'] === 'true');
   }
 
-  if ('disableRange' in hashParams) {
-    PDFJS.disableRange = (hashParams['disableRange'] === 'true');
+  if ('disablerange' in hashParams) {
+    PDFJS.disableRange = (hashParams['disablerange'] === 'true');
   }
 
-  if ('disableAutoFetch' in hashParams) {
-    PDFJS.disableAutoFetch = (hashParams['disableAutoFetch'] === 'true');
+  if ('disableautofetch' in hashParams) {
+    PDFJS.disableAutoFetch = (hashParams['disableautofetch'] === 'true');
   }
 
-  if ('disableFontFace' in hashParams) {
-    PDFJS.disableFontFace = (hashParams['disableFontFace'] === 'true');
+  if ('disablefontface' in hashParams) {
+    PDFJS.disableFontFace = (hashParams['disablefontface'] === 'true');
   }
 
-  if ('disableHistory' in hashParams) {
-    PDFJS.disableHistory = (hashParams['disableHistory'] === 'true');
+  if ('disablehistory' in hashParams) {
+    PDFJS.disableHistory = (hashParams['disablehistory'] === 'true');
   }
 
   if ('webgl' in hashParams) {
     PDFJS.disableWebGL = (hashParams['webgl'] !== 'true');
   }
 
-  if ('useOnlyCssZoom' in hashParams) {
-    PDFJS.useOnlyCssZoom = (hashParams['useOnlyCssZoom'] === 'true');
+  if ('useonlycsszoom' in hashParams) {
+    PDFJS.useOnlyCssZoom = (hashParams['useonlycsszoom'] === 'true');
   }
 
   if ('verbosity' in hashParams) {
     PDFJS.verbosity = hashParams['verbosity'] | 0;
   }
 
-  if ('ignoreCurrentPositionOnZoom' in hashParams) {
+  if ('ignorecurrentpositiononzoom' in hashParams) {
     IGNORE_CURRENT_POSITION_ON_ZOOM =
-      (hashParams['ignoreCurrentPositionOnZoom'] === 'true');
+      (hashParams['ignorecurrentpositiononzoom'] === 'true');
   }
 
 //#if !PRODUCTION
-  if ('disableBcmaps' in hashParams && hashParams['disableBcmaps']) {
+  if ('disablebcmaps' in hashParams && hashParams['disablebcmaps']) {
     PDFJS.cMapUrl = '../external/cmaps/';
     PDFJS.cMapPacked = false;
   }
@@ -1829,8 +1829,8 @@ function webViewerInitialized() {
 //}
 //#endif
 
-  if ('textLayer' in hashParams) {
-    switch (hashParams['textLayer']) {
+  if ('textlayer' in hashParams) {
+    switch (hashParams['textlayer']) {
       case 'off':
         PDFJS.disableTextLayer = true;
         break;
@@ -1838,18 +1838,18 @@ function webViewerInitialized() {
       case 'shadow':
       case 'hover':
         var viewer = document.getElementById('viewer');
-        viewer.classList.add('textLayer-' + hashParams['textLayer']);
+        viewer.classList.add('textLayer-' + hashParams['textlayer']);
         break;
     }
   }
 
 //#if !(FIREFOX || MOZCENTRAL)
-  if ('pdfBug' in hashParams) {
+  if ('pdfbug' in hashParams) {
 //#else
 //if ('pdfBug' in hashParams && FirefoxCom.requestSync('pdfBugEnabled')) {
 //#endif
     PDFJS.pdfBug = true;
-    var pdfBug = hashParams['pdfBug'];
+    var pdfBug = hashParams['pdfbug'];
     var enabled = pdfBug.split(',');
     PDFBug.enable(enabled);
     PDFBug.init();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list