fix: Add default arg to options

This commit is contained in:
Sidharth Vinod
2022-10-19 19:13:05 +05:30
parent 2ae8bf2987
commit 77f5e0d5f3

View File

@@ -453,7 +453,7 @@ const handleDirective = function (p: any, directive: any, type: string): void {
}; };
/** @param {MermaidConfig} options */ /** @param {MermaidConfig} options */
async function initialize(options: MermaidConfig) { async function initialize(options: MermaidConfig = {}) {
// Handle legacy location of font-family configuration // Handle legacy location of font-family configuration
if (options.fontFamily) { if (options.fontFamily) {
if (!options.themeVariables) { if (!options.themeVariables) {