Skip to content

Commit e31625d

Browse files
committed
Update IPC.js
1 parent d0e3da9 commit e31625d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/IPC.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ window.addEventListener('message', async (event) => {
408408
}
409409
// Otherwise, proceed as before
410410
return {
411-
html: item.label,
411+
html: html_encode(item.label),
412412
icon: item.icon ? `<img style="width: 15px; height: 15px; position: absolute; top: 4px; left: 6px;" src="${html_encode(item.icon)}" />` : undefined,
413413
icon_active: item.icon_active ? `<img style="width: 15px; height: 15px; position: absolute; top: 4px; left: 6px;" src="${html_encode(item.icon_active)}" />` : undefined,
414414
disabled: item.disabled,
@@ -497,7 +497,7 @@ window.addEventListener('message', async (event) => {
497497
}
498498
// Otherwise, proceed as before
499499
return {
500-
html: item.label,
500+
html: html_encode(item.label),
501501
disabled: item.disabled,
502502
checked: item.checked,
503503
icon: item.icon ? `<img style="width: 15px; height: 15px; position: absolute; top: 4px; left: 6px;" src="${html_encode(item.icon)}" />` : undefined,

0 commit comments

Comments
 (0)