MCPcopy Index your code
hub / github.com/FeatureProbe/FeatureProbe / parseJSON

Function parseJSON

ui/src/utils/request.ts:1–6  ·  view source on GitHub ↗
(response: Response)

Source from the content-addressed store, hash-verified

1function parseJSON(response: Response) {
2 if (response.headers.get('token')) {
3 localStorage.setItem('token', response.headers.get('token') || '');
4 }
5 return response.json();
6}
7
8function checkStatus(response: Response) {
9 if (

Callers 1

requestFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected