Compare commits
2 Commits
d5d24b0e7e
...
3f20bd1cd3
Author | SHA1 | Date | |
---|---|---|---|
3f20bd1cd3 | |||
ef02f13ef4 |
@ -183,6 +183,7 @@
|
||||
this.selectedItem = undefined;
|
||||
this.items.forEach(item => item.Read = item.Read || item.PendingRead);
|
||||
this.selectedFeed = feed;
|
||||
window.location.hash = feed;
|
||||
},
|
||||
loadItem(item) {
|
||||
if (this.selectedItem === item.ID) {
|
||||
@ -342,6 +343,9 @@
|
||||
])
|
||||
.then(() => {
|
||||
this.setBusy(false);
|
||||
if (window.location.hash.length > 1) {
|
||||
this.loadFeed(window.location.hash.substr(1));
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
console.error(err);
|
||||
|
@ -64,6 +64,11 @@ class FeedItem extends HTMLElement {
|
||||
[...this.shadowRoot.querySelectorAll('a[href^=http]')].forEach(a => {
|
||||
a.setAttribute("target", "_blank");
|
||||
a.setAttribute("rel", "noopener");
|
||||
});
|
||||
[...this.shadowRoot.querySelectorAll('p')].forEach(p => {
|
||||
if (p.innerText.trim() == "") {
|
||||
p.remove();
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user