Skip to content

Commit

Permalink
add missing ! and removed trailing whitespaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
mukulmishra18 committed Nov 13, 2016
1 parent f50b5a6 commit 3e6c3a1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/core/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,12 +375,11 @@ if (typeof PDFJSDev !== 'undefined' && PDFJSDev.test('FIREFOX || MOZCENTRAL')) {
}

var networkManager = this._manager;
var fullRequestXhrId = this._fullRequestId;
var fullRequestXhr = networkManager.getRequestXhr(fullRequestXhrId);
if (networkManager.isHttp) {
if (!networkManager.isHttp) {
return false;
}

var fullRequestXhrId = this._fullRequestId;
var fullRequestXhr = networkManager.getRequestXhr(fullRequestXhrId);
if (fullRequestXhr.getResponseHeader('Accept-Ranges') !== 'bytes') {
return false;
}
Expand Down

0 comments on commit 3e6c3a1

Please sign in to comment.