Skip to content

Commit

Permalink
Update IPC.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jelveh committed Jun 21, 2024
1 parent d0e3da9 commit e31625d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IPC.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ window.addEventListener('message', async (event) => {
}
// Otherwise, proceed as before
return {
html: item.label,
html: html_encode(item.label),
icon: item.icon ? `<img style="width: 15px; height: 15px; position: absolute; top: 4px; left: 6px;" src="${html_encode(item.icon)}" />` : undefined,
icon_active: item.icon_active ? `<img style="width: 15px; height: 15px; position: absolute; top: 4px; left: 6px;" src="${html_encode(item.icon_active)}" />` : undefined,
disabled: item.disabled,
Expand Down Expand Up @@ -497,7 +497,7 @@ window.addEventListener('message', async (event) => {
}
// Otherwise, proceed as before
return {
html: item.label,
html: html_encode(item.label),
disabled: item.disabled,
checked: item.checked,
icon: item.icon ? `<img style="width: 15px; height: 15px; position: absolute; top: 4px; left: 6px;" src="${html_encode(item.icon)}" />` : undefined,
Expand Down

0 comments on commit e31625d

Please sign in to comment.