Fixing lint errors introduced by #505
This commit is contained in:
parent
6e859fb3e4
commit
7dc887ace3
@ -110,15 +110,15 @@ var PDFView = {
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', url);
|
||||
xhr.mozResponseType = xhr.responseType = 'arraybuffer';
|
||||
xhr.expected = (document.URL.indexOf('file:') === 0) ? 0 : 200;
|
||||
xhr.expected = (document.URL.indexOf('file:') === 0) ? 0 : 200;
|
||||
xhr.onprogress = PDFView.progressLevel;
|
||||
|
||||
xhr.onreadystatechange = function() {
|
||||
if (xhr.readyState === 4 && xhr.status === xhr.expected) {
|
||||
var data = (xhr.mozResponseArrayBuffer || xhr.mozResponse ||
|
||||
xhr.responseArrayBuffer || xhr.response);
|
||||
|
||||
document.getElementById('loading').style.display = "none";
|
||||
|
||||
document.getElementById('loading').style.display = 'none';
|
||||
PDFView.load(data, scale);
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user