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