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
f82ad8ae89
|
@ -76,14 +76,14 @@ $(document).ready(function () {
|
||||||
var storedPosts = store.get('sn_posts'),
|
var storedPosts = store.get('sn_posts'),
|
||||||
storedTemplate = store.get('sn_template');
|
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
|
// Load posts and template from localstorage
|
||||||
for (const v of storedPosts) {
|
for (const v of storedPosts) {
|
||||||
renderPost(v, storedTemplate);
|
renderPost(v, storedTemplate);
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
} else if (allPosts.length) {
|
||||||
|
|
||||||
var deferred,
|
var deferred,
|
||||||
deferreds = [];
|
deferreds = [];
|
||||||
|
|
|
@ -805,6 +805,9 @@ a.active{
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
border: none;
|
border: none;
|
||||||
|
img {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
.meta{
|
.meta{
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
Loading…
Reference in New Issue