diff --git a/src/lib/viewers/doc/DocBaseViewer.js b/src/lib/viewers/doc/DocBaseViewer.js index 6d7a8fa95..b804f34ec 100644 --- a/src/lib/viewers/doc/DocBaseViewer.js +++ b/src/lib/viewers/doc/DocBaseViewer.js @@ -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' }; diff --git a/src/lib/viewers/doc/__tests__/DocBaseViewer-test.js b/src/lib/viewers/doc/__tests__/DocBaseViewer-test.js index b4db85d10..fc70676f7 100644 --- a/src/lib/viewers/doc/__tests__/DocBaseViewer-test.js +++ b/src/lib/viewers/doc/__tests__/DocBaseViewer-test.js @@ -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({}));