Skip to content

Commit

Permalink
Fixed: Bookmarks: Show url if title is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
mbnuqw committed Apr 27, 2021
1 parent ae8f9ee commit 29e8480
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sidebar/components/bookmark.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
.fav
.placeholder(v-if="!favicon"): svg: use(xlink:href="#icon_ff")
img(v-if="favicon" :src="favicon")
.title(v-if="node.title") {{node.title}}
.title(v-if="node.title || node.url") {{node.title || node.url}}
</template>

<script>
Expand All @@ -33,7 +33,7 @@ export default {
},
tooltip() {
return `${this.node.title}\n${this.node.url}`
return this.node.title ? `${this.node.title}\n${this.node.url}` : this.node.url
},
},
Expand Down

0 comments on commit 29e8480

Please sign in to comment.