mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Replace the isInt
helper function with the native Number.isInteger
function
*Follow-up to PR 8643.*
This commit is contained in:
parent
066fea9c8b
commit
11408da340
12 changed files with 65 additions and 72 deletions
|
@ -14,7 +14,7 @@
|
|||
*/
|
||||
|
||||
import {
|
||||
createObjectURL, FormatError, info, isArray, isInt, isSpace, shadow, Util
|
||||
createObjectURL, FormatError, info, isArray, isSpace, shadow, Util
|
||||
} from '../shared/util';
|
||||
import { Dict, isDict, isStream } from './primitives';
|
||||
import { Jbig2Image } from './jbig2';
|
||||
|
@ -927,7 +927,7 @@ var JpegStream = (function JpegStreamClosure() {
|
|||
// Fetching the 'ColorTransform' entry, if it exists.
|
||||
if (isDict(this.params)) {
|
||||
var colorTransform = this.params.get('ColorTransform');
|
||||
if (isInt(colorTransform)) {
|
||||
if (Number.isInteger(colorTransform)) {
|
||||
jpegImage.colorTransform = colorTransform;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue