|
|
@ -132,16 +132,18 @@ var PDFHistory = { |
|
|
|
|
|
|
|
|
|
|
|
_pushOrReplaceState: function pdfHistory_pushOrReplaceState(stateObj, |
|
|
|
_pushOrReplaceState: function pdfHistory_pushOrReplaceState(stateObj, |
|
|
|
replace) { |
|
|
|
replace) { |
|
|
|
// In Firefox, 'urlParam' needs to be undefined in order to prevent issues
|
|
|
|
if (replace) { |
|
|
|
// when local files are opened.
|
|
|
|
|
|
|
|
var urlParam; |
|
|
|
|
|
|
|
//#if (GENERIC || CHROME)
|
|
|
|
//#if (GENERIC || CHROME)
|
|
|
|
urlParam = document.URL; |
|
|
|
window.history.replaceState(stateObj, '', document.URL); |
|
|
|
|
|
|
|
//#else
|
|
|
|
|
|
|
|
// window.history.replaceState(stateObj, '');
|
|
|
|
//#endif
|
|
|
|
//#endif
|
|
|
|
if (replace) { |
|
|
|
|
|
|
|
window.history.replaceState(stateObj, '', urlParam); |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
window.history.pushState(stateObj, '', urlParam); |
|
|
|
//#if (GENERIC || CHROME)
|
|
|
|
|
|
|
|
window.history.pushState(stateObj, '', document.URL); |
|
|
|
|
|
|
|
//#else
|
|
|
|
|
|
|
|
// window.history.pushState(stateObj, '');
|
|
|
|
|
|
|
|
//#endif
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|