fix browserify compatibility

This commit is contained in:
Max Kharandziuk 2014-09-07 18:34:01 +03:00
parent 2e102c72b2
commit a909459e22

View File

@ -116,8 +116,7 @@ var g_output_modifiers = [];
//
// Automatic Extension Loading (node only):
//
if (typeof module !== 'undefind' && typeof exports !== 'undefined' && typeof require !== 'undefind') {
if (typeof window === 'undefined' && typeof module !== 'undefind' && typeof exports !== 'undefined' && typeof require !== 'undefind') {
var fs = require('fs');
if (fs) {