Fix binding class method for emotion theme cache

This commit is contained in:
Arnie 2024-10-26 21:55:59 +02:00
parent a0980213fd
commit 356a9696d4

View File

@ -13,7 +13,7 @@ const themeCache = createCache({
key: "cv", key: "cv",
}); });
const i: EmotionCache["insert"] = (...args) => themeCache.insert(...args); const i = themeCache.insert.bind(themeCache);
themeCache.insert = (...args) => { themeCache.insert = (...args) => {
args[2].tags.forEach((t) => { args[2].tags.forEach((t) => {
if (!t.getAttribute("media")) { if (!t.getAttribute("media")) {