Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
config[fontName] = font
switch (fontName) {
case "fontdeck":
case "typekit":
font.id = params.join(",");
break;
case "google":
font.families = params;
break;
case "monotype":
font.projectId = params[0];
font.version = params[1];
}
WebFont.load(config);
});
}