fixed bug that prevented run on nodejs

This commit is contained in:
Krzysztof Kaczor 2015-09-17 21:25:37 +02:00
parent 7a7480911c
commit b2d771e01c
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) {