Files
AFFiNE/packages/frontend/core/src/utils/create-emotion-cache.ts
EYHN 2524491bd1 fix(env): is mobile flag (#8005)
only 'mobile' entry has isMobile = true flag
2024-09-04 09:21:36 +00:00

11 lines
332 B
TypeScript

import createCache from '@emotion/cache';
export default function createEmotionCache() {
const emotionInsertionPoint = document.querySelector<HTMLMetaElement>(
'meta[name="emotion-insertion-point"]'
);
const insertionPoint = emotionInsertionPoint ?? undefined;
return createCache({ key: 'affine', insertionPoint });
}