Compare commits
No commits in common. "3ad11a47882993b91d8b66ee827af3c3510d417b" and "897d12ed4e20fca3abb4cdcd7992938620d9d90a" have entirely different histories.
3ad11a4788
...
897d12ed4e
2 changed files with 3 additions and 11 deletions
|
@ -59,7 +59,6 @@ const parseAtomFeed = (feed: Element, url: string | null) => {
|
|||
description: getNodeContent(feed, 'subtitle'),
|
||||
feedUrl: url?.length ? url : window.location.href,
|
||||
homeUrl: homeURL,
|
||||
iconUrl: iconURL,
|
||||
image: {
|
||||
imageUrl: logoURL || iconURL,
|
||||
targetUrl: homeURL,
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
</div>
|
||||
|
||||
<div class="description" v-if="feed.description?.length">
|
||||
<span v-if="feed.html.description" v-html="feed.description" />
|
||||
<span v-else v-text="feed.description" />
|
||||
<h2 v-if="feed.html.description" v-html="feed.description" />
|
||||
<h2 v-else v-text="feed.description" />
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
@ -64,13 +64,6 @@ export default {
|
|||
|
||||
async mounted() {
|
||||
this.feed = (await browser.storage.local.get('feedData'))?.feedData || {}
|
||||
if (this.feed.iconUrl) {
|
||||
const link = document.querySelector("link[rel*='icon']") || document.createElement('link')
|
||||
link.type = 'image/x-icon'
|
||||
link.rel = 'shortcut icon'
|
||||
link.href = this.feed.iconUrl
|
||||
document.getElementsByTagName('head')[0].appendChild(link)
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
@ -190,7 +183,7 @@ main {
|
|||
font-size: 1.25em;
|
||||
|
||||
.description {
|
||||
padding: 1em;
|
||||
max-width: 45em;
|
||||
text-align: justify;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue