Check node environment by window instead of module.
Merge pull request #15 from whs/master

Check node environment by window instead of module.