Skip to content

Commit

Permalink
Fix item with no value condition
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitahl committed Aug 23, 2024
1 parent d24a3da commit aef4c29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function createPopup(link, type, linkText, linkMeta) {

function saveToLocalStorage(category, link, linkText, linkMeta, playlistName = null) {
if (linkText === 'No text available' && document.getElementById('linkName')) {
linkText = document.getElementById('linkName').value;
linkText = document.getElementById('linkName').value || linkText;
}
browser.storage.local.get([ category ], result => {
let items = result[category] || {};
Expand Down

0 comments on commit aef4c29

Please sign in to comment.