Skip to content

Commit

Permalink
Readme missing comma (#4182)
Browse files Browse the repository at this point in the history
  • Loading branch information
nutboltu authored and hwillson committed Jan 2, 2019
1 parent 8ccf599 commit c20c835
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/source/advanced/network-layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const authMiddleware = new ApolloLink((operation, forward) => {
operation.setContext({
headers: {
authorization: localStorage.getItem('token') || null,
}
}
});

return forward(operation);
Expand Down Expand Up @@ -91,7 +91,7 @@ const authMiddleware = new ApolloLink((operation, forward) => {
headers: {
...headers,
authorization: localStorage.getItem('token') || null,
}
}
}));

return forward(operation);
Expand All @@ -103,7 +103,7 @@ const otherMiddleware = new ApolloLink((operation, forward) => {
headers: {
...headers,
'recent-activity': localStorage.getItem('lastOnlineTime') || null,
}
}
}));

return forward(operation);
Expand Down Expand Up @@ -135,7 +135,7 @@ The following example demonstrates how to implement an afterware function.
```js
import { ApolloClient } from 'apollo-client';
import { HttpLink } from 'apollo-link-http';
import { onError } from 'apollo-link-error'
import { onError } from 'apollo-link-error';

import { logout } from './logout';

Expand Down

0 comments on commit c20c835

Please sign in to comment.