@tdb/web
Version:
Common condiguration for serving a web-site and testing web-based UI components.
12 lines (11 loc) • 499 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var common_1 = require("../common");
var LOAD_TYPE_KIT = "try{Typekit.load({ async: true });}catch(e){}";
function typekit(id) {
return [
common_1.React.createElement("script", { key: 'typekit-script', src: "https://use.typekit.net/" + id + ".js" }),
common_1.React.createElement("script", { key: 'typekit-js', dangerouslySetInnerHTML: { __html: LOAD_TYPE_KIT } }),
];
}
exports.typekit = typekit;