Explorar o código

fix js.Browser.supported

Dan Korostelev %!s(int64=10) %!d(string=hai) anos
pai
achega
7e001f0297
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      std/js/Browser.hx

+ 1 - 1
std/js/Browser.hx

@@ -44,7 +44,7 @@ class Browser {
 	 * environment such as node.js.
 	 */
 	public static var supported(get, never):Bool;
-	inline static function get_supported() return untyped __js__("typeof window != \"undefined\"");
+	inline static function get_supported() return untyped __typeof__(window) != "undefined";
 
 	/**
 	 * Safely gets the browser's local storage, or returns null if localStorage is unsupported or