Amir Rezai преди 5 години
родител
ревизия
2e6c88c3b0
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      hxd/res/Embed.hx

+ 4 - 0
hxd/res/Embed.hx

@@ -104,7 +104,11 @@ class Embed {
 
 	#if js
 	static function __init__() untyped {
+		#if (haxe_ver >= 4)
+		js.Syntax.code("var hx__registerFont");
+		#else
 		__js__("var hx__registerFont");
+		#end
 		untyped hx__registerFont = function(name, data) {
 			var s = js.Browser.document.createStyleElement();
 			s.type = "text/css";