|
|
@ -31,7 +31,6 @@ var VERTICAL_PADDING = 5; |
|
|
|
var MIN_SCALE = 0.25; |
|
|
|
var MIN_SCALE = 0.25; |
|
|
|
var MAX_SCALE = 4.0; |
|
|
|
var MAX_SCALE = 4.0; |
|
|
|
var SETTINGS_MEMORY = 20; |
|
|
|
var SETTINGS_MEMORY = 20; |
|
|
|
var HISTORY_DISABLED = false; |
|
|
|
|
|
|
|
var SCALE_SELECT_CONTAINER_PADDING = 8; |
|
|
|
var SCALE_SELECT_CONTAINER_PADDING = 8; |
|
|
|
var SCALE_SELECT_PADDING = 22; |
|
|
|
var SCALE_SELECT_PADDING = 22; |
|
|
|
var RenderingStates = { |
|
|
|
var RenderingStates = { |
|
|
@ -190,7 +189,7 @@ var PDFHistory = { |
|
|
|
initialDestination: null, |
|
|
|
initialDestination: null, |
|
|
|
|
|
|
|
|
|
|
|
initialize: function pdfHistoryInitialize(fingerprint) { |
|
|
|
initialize: function pdfHistoryInitialize(fingerprint) { |
|
|
|
if (HISTORY_DISABLED || window.parent !== window) { |
|
|
|
if (PDFJS.disableHistory || window.parent !== window) { |
|
|
|
// The browsing history is only enabled when the viewer is standalone,
|
|
|
|
// The browsing history is only enabled when the viewer is standalone,
|
|
|
|
// i.e. not when it is embedded in a page.
|
|
|
|
// i.e. not when it is embedded in a page.
|
|
|
|
return; |
|
|
|
return; |
|
|
@ -2564,6 +2563,10 @@ document.addEventListener('DOMContentLoaded', function webViewerLoad(evt) { |
|
|
|
PDFJS.disableFontFace = (hashParams['disableFontFace'] === 'true'); |
|
|
|
PDFJS.disableFontFace = (hashParams['disableFontFace'] === 'true'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ('disableHistory' in hashParams) { |
|
|
|
|
|
|
|
PDFJS.disableHistory = (hashParams['disableHistory'] === 'true'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//#if !(FIREFOX || MOZCENTRAL)
|
|
|
|
//#if !(FIREFOX || MOZCENTRAL)
|
|
|
|
var locale = navigator.language; |
|
|
|
var locale = navigator.language; |
|
|
|
if ('locale' in hashParams) |
|
|
|
if ('locale' in hashParams) |
|
|
|