Skip to content

Commit 86b9ecf

Browse files
committed
Make fmt
1 parent 5662a55 commit 86b9ecf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

site/src/api/api.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ export const hardCodedCSRFCookie = (): string => {
1919
// Always attach CSRF token to all requests.
2020
// In puppeteer the document is undefined. In those cases, just
2121
// do nothing.
22-
const token = typeof document !== 'undefined' ?
23-
document.head.querySelector('meta[property="csrf-token"]') :
24-
null
22+
const token =
23+
typeof document !== "undefined"
24+
? document.head.querySelector('meta[property="csrf-token"]')
25+
: null
2526

2627
if (token !== null && token.getAttribute("content") !== null) {
2728
if (process.env.NODE_ENV === "development") {

0 commit comments

Comments
 (0)