Fix binding class method for emotion theme cache
This commit is contained in:
parent
a0980213fd
commit
356a9696d4
@ -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")) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user