Skip to content

Commit a24a7cd

Browse files
committed
Removed unnecesary logging.
1 parent 08bdc48 commit a24a7cd

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/api.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export async function getFollowers(state) {
5656
const {followers_url} = state.profileData;
5757
const followers = await fetch(followers_url).then(r => r.json());
5858
state.followers = followers;
59-
console.log({followers});
6059
return followers;
6160
}
6261

@@ -112,6 +111,5 @@ export async function getFeed(state) {
112111
if ( state ) {
113112
state.feed = feed;
114113
}
115-
console.log({feed});
116114
return feed;
117115
}

src/verify.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
if ( !!code ) {
1010
({token} = await fetch(`https://gistbarn.herokuapp.com/authenticate/${code}`).then(r => r.json()));
11-
console.log({loggedIn:token});
1211
if( !!token ) {
1312
document.body.insertAdjacentHTML('beforeEnd', '<p><strong>Logging you in...</strong>');
1413
localStorage.setItem('token', token);

src/views/PostList.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export default function PostList(state, {type, key}) {
88
} else {
99
list = state[type].get(key);
1010
}
11-
console.log({list,type,key});
1211
return R`
1312
<link rel=stylesheet href=src/views/styles/PostList.css>
1413
<section class="postlist">
@@ -17,9 +16,12 @@ export default function PostList(state, {type, key}) {
1716
${list.map(post => R`${{key:post.id}}
1817
<li>
1918
<section class="postsummary">
20-
<header>${post.description || 'Untitled'}</header>
19+
<header>
20+
<a href=#readPost-${post.id} click=${e => readPost(e, post)}>
21+
${post.description || 'Untitled'}
22+
</a>
23+
</header>
2124
<div class="postcontent">${Object.keys(post.files).join(', ')}</div>
22-
<a href=#readPost-${post.id} click=${e => readPost(e, post)}>Read more</a>
2325
<a href=#browse-${post.owner.login} click=${e => browseUser(e, post.owner.login, state)}>${post.owner.login}</a>
2426
<time datetime="${post.updated_at}">${post.time_ago} ago</time>
2527
</section>

0 commit comments

Comments
 (0)