Skip to content

Commit a79eeac

Browse files
author
Friedrich W. H. Kossebau
committed
fix checking for NaN value
1 parent 8a76419 commit a79eeac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

programs/viewer/viewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ function Viewer(viewerPlugin, parameters) {
259259

260260
function readStartPageParameter(startPage) {
261261
var result = parseInt(startPage, 10);
262-
return (result != NaN) ? result : 1;
262+
return isNaN(result) ? 1 : result;
263263
}
264264

265265
this.initialize = function () {

0 commit comments

Comments
 (0)