Skip to content

Commit

Permalink
Merge pull request #14 from VladimirDev93/develop
Browse files Browse the repository at this point in the history
Fix null issue for users loging with facebook
  • Loading branch information
jelenajjo authored May 17, 2018
2 parents a0ad490 + 08f6128 commit 3c7fe3a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/js/newtab/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function updateData(sel, msg, list) {
<div class="postItemAuthorInfo">
<div class="posts-item-user">
<div class="avatar">
<a href="${globalSettings.homeURL}/users/${elem.user.username}">
<a href="${globalSettings.homeURL}/users/${elem.user.displayName}">
<span>
<img alt="" class="avatar-image" src="${elem.user.avatarUrl}" title="">
</span>
Expand All @@ -216,7 +216,7 @@ function updateData(sel, msg, list) {
<div class="dateWrapper">
<span class="spanBy">by </span>
<span class="users-name">${elem.user.username}</span>
<span class="users-name">${elem.user.displayName}</span>
<div class="posts-item-date">${elem.postedAt
? moment(new Date(elem.postedAt)).fromNow()
: ""}</div>
Expand Down
9 changes: 8 additions & 1 deletion src/views/newtab.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,14 @@ <h2>Sign In</h2>
});
};
</script>

<script async src="https://www.googletagmanager.com/gtag/js?id=UA-1200538-40"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'UA-1200538-40');
</script>
</body>

</html>

0 comments on commit 3c7fe3a

Please sign in to comment.