perf: getEnvironment() -> env (#2636)

This commit is contained in:
Simon He
2023-06-01 11:23:38 +08:00
committed by GitHub
parent e1314730be
commit fc9462eee9
16 changed files with 70 additions and 86 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import { getEnvironment } from '@affine/env';
import { env } from '@affine/env';
import createCache from '@emotion/cache';
const isBrowser = getEnvironment().isBrowser;
const isBrowser = env.isBrowser;
export default function createEmotionCache() {
let insertionPoint;