Skip to content

Commit

Permalink
removed safari compatibility check
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneSqr committed Jun 21, 2018
1 parent 439d58d commit eb6b296
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 18 deletions.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ var AUTOPREFIXER_CONFIG = {
'Firefox >= 52', // Last supported on Windows XP
'Firefox ESR',
'IE >= 11',
'Safari >= 8',
'Safari >= 9',
'> 0.5%',
'not dead',
],
Expand Down
4 changes: 2 additions & 2 deletions src/display/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,10 @@ function getDocument(src) {
}

if (typeof params.disableRange !== 'boolean') {
params.disableRange = apiCompatibilityParams.disableRange || false;
params.disableRange = false;
}
if (typeof params.disableStream !== 'boolean') {
params.disableStream = apiCompatibilityParams.disableStream || false;
params.disableStream = false;
}
if (typeof params.disableAutoFetch !== 'boolean') {
params.disableAutoFetch = false;
Expand Down
13 changes: 0 additions & 13 deletions src/display/api_compatibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ if (typeof PDFJSDev === 'undefined' || PDFJSDev.test('GENERIC')) {
const userAgent =
(typeof navigator !== 'undefined' && navigator.userAgent) || '';
const isIE = /Trident/.test(userAgent);
const isIOS = /\b(iPad|iPhone|iPod)(?=;)/.test(userAgent);
const isIOSChrome = /CriOS/.test(userAgent);
const isSafari = /Safari\//.test(userAgent) &&
!/(Chrome\/|Android\s)/.test(userAgent);

// Checks if possible to use URL.createObjectURL()
// Support: IE, Chrome on iOS
Expand All @@ -35,16 +32,6 @@ if (typeof PDFJSDev === 'undefined' || PDFJSDev.test('GENERIC')) {
}
})();

// Support: Safari 6.0+, iOS
(function checkRangeRequests() {
// Safari has issues with cached range requests, see issue #3260.
// Last tested with version 6.0.4.
if (isSafari || isIOS) {
compatibilityParams.disableRange = true;
compatibilityParams.disableStream = true;
}
})();

// Support: Node.js
(function checkFontFaceAndImage() {
// Node.js is missing native support for `@font-face` and `Image`.
Expand Down
4 changes: 2 additions & 2 deletions web/app_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@ const defaultOptions = {
},
disableRange: {
/** @type {boolean} */
value: apiCompatibilityParams.disableRange || false,
value: false,
kind: OptionKind.API,
},
disableStream: {
/** @type {boolean} */
value: apiCompatibilityParams.disableStream || false,
value: false,
kind: OptionKind.API,
},
isEvalSupported: {
Expand Down

0 comments on commit eb6b296

Please sign in to comment.