Fix a bug with featured image and duplicated posts
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
0373d49188
commit
baa4c9d09d
|
@ -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 = [];
|
||||
|
|
|
@ -805,6 +805,9 @@ a.active{
|
|||
padding: 0;
|
||||
margin: 0;
|
||||
border: none;
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
.meta{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
Loading…
Reference in New Issue