Skip to content

Commit

Permalink
Remove empty parentheses in All Desktop Audio
Browse files Browse the repository at this point in the history
  • Loading branch information
jim3692 committed Jul 12, 2023
1 parent 5632b8c commit d5e7deb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion extension/scripts/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,13 @@ async function populateNodesList (response) {
// dropdown.appendChild(allDesktopAudioOption)

for (const element of whitelistedNodes) {
let text = element.properties['media.name']
if (element.properties['application.name']) {
text += ` (${element.properties['application.name']})`
}

const option = document.createElement('option')
option.innerText = `${element.properties['media.name']} (${element.properties['application.name']})`
option.innerText = text
option.value = element.properties['object.serial']

dropdown.appendChild(option)
Expand Down

0 comments on commit d5e7deb

Please sign in to comment.