From 356a9696d4b473d97ac97f51cba1e17b3fc34b40 Mon Sep 17 00:00:00 2001 From: Arnie Date: Sat, 26 Oct 2024 21:55:59 +0200 Subject: [PATCH] Fix binding class method for emotion theme cache --- app/frontend/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/frontend/src/App.tsx b/app/frontend/src/App.tsx index 6825b9e..6b6ab42 100644 --- a/app/frontend/src/App.tsx +++ b/app/frontend/src/App.tsx @@ -13,7 +13,7 @@ const themeCache = createCache({ key: "cv", }); -const i: EmotionCache["insert"] = (...args) => themeCache.insert(...args); +const i = themeCache.insert.bind(themeCache); themeCache.insert = (...args) => { args[2].tags.forEach((t) => { if (!t.getAttribute("media")) {