Remove CSP

This commit is contained in:
2023-10-19 16:49:35 -04:00
parent ee68c1b13d
commit c97029e510
4 changed files with 7 additions and 34 deletions

View File

@ -1,10 +1,10 @@
import createCache from "@emotion/cache";
export default function createEmotionCache(nonce?: string) {
export default function createEmotionCache() {
// The browser throws when calling .default, but the server throws if we don't call .default
// Of course!
return typeof document === "undefined"
? createCache.default({ key: "cha", nonce })
? createCache.default({ key: "cha" })
: // @ts-expect-error
createCache({ key: "cha", nonce });
createCache({ key: "cha" });
}