mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
commit
5ca1c84564
2 changed files with 4 additions and 4 deletions
|
@ -489,7 +489,7 @@ var Util = PDFJS.Util = (function UtilClosure() {
|
|||
var loaded = false;
|
||||
script.setAttribute('src', src);
|
||||
if (callback) {
|
||||
script.onreadystatechange = script.onload = function() {
|
||||
script.onload = function() {
|
||||
if (!loaded) {
|
||||
callback();
|
||||
}
|
||||
|
|
|
@ -65,7 +65,7 @@ var PDFHistory = {
|
|||
// is opened in the web viewer.
|
||||
this.reInitialized = true;
|
||||
}
|
||||
window.history.replaceState({ fingerprint: this.fingerprint }, '', '');
|
||||
window.history.replaceState({ fingerprint: this.fingerprint }, '');
|
||||
}
|
||||
|
||||
var self = this;
|
||||
|
@ -270,9 +270,9 @@ var PDFHistory = {
|
|||
}
|
||||
}
|
||||
if (overwrite || this.uid === 0) {
|
||||
window.history.replaceState(this._stateObj(params), '', '');
|
||||
window.history.replaceState(this._stateObj(params), '');
|
||||
} else {
|
||||
window.history.pushState(this._stateObj(params), '', '');
|
||||
window.history.pushState(this._stateObj(params), '');
|
||||
}
|
||||
this.currentUid = this.uid++;
|
||||
this.current = params;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue