Skip to content

Commit

Permalink
Chore: Remove unnecessary mobile check (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyjin authored May 16, 2017
1 parent 3c36f0a commit 7268548
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/viewers/doc/DocBaseViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ class DocBaseViewer extends BaseViewer {

// Fix incorrectly cached range requests on older versions of iOS webkit browsers,
// see: https://bugs.webkit.org/show_bug.cgi?id=82672
if (this.isMobile && Browser.isIOS()) {
if (Browser.isIOS()) {
docInitParams.httpHeaders = {
'If-None-Match': 'webkit-no-cache'
};
Expand Down
1 change: 0 additions & 1 deletion src/lib/viewers/doc/__tests__/DocBaseViewer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,6 @@ describe('src/lib/viewers/doc/DocBaseViewer', () => {
docBase.options.location = {
locale: 'en-US'
};
docBase.isMobile = true;
sandbox.stub(Browser, 'isIOS').returns(true);
sandbox.stub(PDFJS, 'getDocument').returns(Promise.resolve({}));

Expand Down

0 comments on commit 7268548

Please sign in to comment.