From 6cdd2128e579fdcca92d1971b21471cdfb2386bb Mon Sep 17 00:00:00 2001 From: shpark0913 Date: Sat, 7 Dec 2024 22:38:32 +0900 Subject: [PATCH] fix: Fix a typo from sytleContent to styleContent --- src/embed-webfonts.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/embed-webfonts.ts b/src/embed-webfonts.ts index 42c73da6..a575a92a 100644 --- a/src/embed-webfonts.ts +++ b/src/embed-webfonts.ts @@ -230,9 +230,9 @@ export async function embedWebFonts( if (cssText) { const styleNode = document.createElement('style') - const sytleContent = document.createTextNode(cssText) + const styleContent = document.createTextNode(cssText) - styleNode.appendChild(sytleContent) + styleNode.appendChild(styleContent) if (clonedNode.firstChild) { clonedNode.insertBefore(styleNode, clonedNode.firstChild)