-
-
Notifications
You must be signed in to change notification settings - Fork 776
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Innei <[email protected]>
- Loading branch information
Showing
4 changed files
with
31 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
diff --git a/client/_utils.js b/client/_utils.js | ||
index 25bd573915c9bd9251ed6ce241889e0d6f13ba55..0c7e9e06fec0a9c00cd8e733d2222afb4b4d4670 100644 | ||
index de4e3c4eedfaffa561ff7ea80f109cbf3bb807e5..acdcdb9a9b0bc1082c158cc4c74ef3684fd6ddf7 100644 | ||
--- a/client/_utils.js | ||
+++ b/client/_utils.js | ||
@@ -45,6 +45,7 @@ function _fetchData() { | ||
options.body = JSON.stringify(req.body); | ||
options.method = "POST"; | ||
} | ||
+ options.credentials = "include"; | ||
_context.next = 7; | ||
return fetch(url, options); | ||
case 7: | ||
@@ -63,7 +64,7 @@ function _fetchData() { | ||
case 16: | ||
_context.prev = 16; | ||
_context.t0 = _context["catch"](2); | ||
- logger.error("CLIENT_FETCH_ERROR", { | ||
+ console.error("CLIENT_FETCH_ERROR", { | ||
error: _context.t0, | ||
url: url | ||
}); | ||
@@ -57,6 +57,7 @@ function _fetchData() { | ||
options.method = "POST"; | ||
} | ||
|
||
+ options.credentials = "include"; | ||
_context.next = 7; | ||
return fetch(url, options); | ||
|
||
@@ -81,7 +82,7 @@ function _fetchData() { | ||
case 16: | ||
_context.prev = 16; | ||
_context.t0 = _context["catch"](2); | ||
- logger.error("CLIENT_FETCH_ERROR", { | ||
+ console.error("CLIENT_FETCH_ERROR", { | ||
error: _context.t0, | ||
url: url | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,6 @@ | |
], | ||
"ignoreDeps": [ | ||
"jojoo", | ||
"framer-motion" | ||
"next" | ||
] | ||
} |