fixed bug that prevented run on nodejs
This commit is contained in:
parent
7a7480911c
commit
b2d771e01c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue