diff --git a/dev/editviewer.py b/dev/editviewer.py index de87e98f4..0070696a8 100644 --- a/dev/editviewer.py +++ b/dev/editviewer.py @@ -31,7 +31,7 @@ .replace('''this.removePageBorders = options.removePageBorders || false;''', '''this.removePageBorders = options.removePageBorders || true;''') \ .replace('''localStorage.setItem("pdfjs.history", databaseStr);''', '''// localStorage.setItem("pdfjs.history", databaseStr);''') \ .replace('''return localStorage.getItem("pdfjs.history");''', '''return // localStorage.getItem("pdfjs.history");''') \ - .replace('''this.setTitle(title);''', '''// this.setTitle(title);''') \ + .replace('''this.setTitle(title || url);''', '''// this.setTitle(title || url);''') \ .replace('''localStorage.setItem("pdfjs.preferences", JSON.stringify(prefObj));''', '''// localStorage.setItem("pdfjs.preferences", JSON.stringify(prefObj));''') \ .replace('''prefs: JSON.parse(localStorage.getItem("pdfjs.preferences"))''', '''prefs: undefined // JSON.parse(localStorage.getItem("pdfjs.preferences"))''') \ .replace('''(!event.shiftKey || window.chrome || window.opera)) {''', '''(!event.shiftKey || window.chrome || window.opera)) {\n if (window.parent !== window) {\n return;\n }''') \ diff --git a/dev/viewer/viewer.html.diff b/dev/viewer/viewer.html.diff index 2209f7a6d..8324be999 100644 --- a/dev/viewer/viewer.html.diff +++ b/dev/viewer/viewer.html.diff @@ -1,5 +1,5 @@ diff --git a/../../web/viewer.html b/../viewer/viewer.html -index badac98dc..bedfdd304 100644 +index 7c05f0ac5..4369c642c 100644 --- a/../../web/viewer.html +++ b/../viewer/viewer.html @@ -25,15 +25,17 @@ See https://github.com/adobe-type-tools/cmap-resources @@ -22,12 +22,12 @@ index badac98dc..bedfdd304 100644
-@@ -275,7 +277,7 @@ See https://github.com/adobe-type-tools/cmap-resources -