Fix a bug with featured image and duplicated posts

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jinho Jang 2020-09-05 10:57:46 +09:00 committed by Jakub
parent 0373d49188
commit baa4c9d09d
2 changed files with 5 additions and 2 deletions

View File

@ -76,14 +76,14 @@ $(document).ready(function () {
var storedPosts = store.get('sn_posts'),
storedTemplate = store.get('sn_template');
if(typeof storedPosts != 'undefined' && typeof storedTemplate != 'undefined'){
if(typeof storedPosts !== 'undefined' && typeof storedTemplate !== 'undefined'){
// Load posts and template from localstorage
for (const v of storedPosts) {
renderPost(v, storedTemplate);
}
}else{
} else if (allPosts.length) {
var deferred,
deferreds = [];

View File

@ -805,6 +805,9 @@ a.active{
padding: 0;
margin: 0;
border: none;
img {
width: 100%;
}
.meta{
display: flex;
align-items: center;