was failing when ran in NodeJS

This commit is contained in:
Eric Vergnaud 2015-09-14 23:34:52 +08:00
parent 66bd976cd1
commit 488f7b92ae
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@
// when you construct the object.
//
var InputStream = require('./InputStream').InputStream;
var isNodeJs = typeof window === 'undefined' && importScripts === 'undefined';
var isNodeJs = typeof window === 'undefined' && typeof importScripts === 'undefined';
var fs = isNodeJs ? require("fs") : null;
function FileStream(fileName) {