2
0
Эх сурвалжийг харах

try to fix node.js problem

mockey 11 жил өмнө
parent
commit
99cc2e5c6b
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      std/js/Boot.hx

+ 1 - 1
std/js/Boot.hx

@@ -222,7 +222,7 @@ class Boot {
 	
 	
 	// resolve native JS class (with window or global):
 	// resolve native JS class (with window or global):
 	static function __resolveNativeClass(name:String) untyped {
 	static function __resolveNativeClass(name:String) untyped {
-		var g = __js__("typeof")(window) != "undefined" ? window : global;
+		var g = __js__("typeof window") != "undefined" ? window : global;
 		return g[name];
 		return g[name];
 	}
 	}