We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5662a55 commit 86b9ecfCopy full SHA for 86b9ecf
site/src/api/api.ts
@@ -19,9 +19,10 @@ export const hardCodedCSRFCookie = (): string => {
19
// Always attach CSRF token to all requests.
20
// In puppeteer the document is undefined. In those cases, just
21
// do nothing.
22
-const token = typeof document !== 'undefined' ?
23
- document.head.querySelector('meta[property="csrf-token"]') :
24
- null
+const token =
+ typeof document !== "undefined"
+ ? document.head.querySelector('meta[property="csrf-token"]')
25
+ : null
26
27
if (token !== null && token.getAttribute("content") !== null) {
28
if (process.env.NODE_ENV === "development") {
0 commit comments