mirror of
https://github.com/zen-browser/desktop.git
synced 2026-03-29 11:51:51 +00:00
no-bug: Only set checked attr if value is true on live folder context menu (gh-12882)
This commit is contained in:
@@ -78,8 +78,10 @@ class nsZenLiveFoldersUI {
|
||||
menuItem.setAttribute("data-l10n-id", option.l10nId);
|
||||
|
||||
if (option.checked !== undefined) {
|
||||
menuItem.setAttribute("checked", option.checked);
|
||||
menuItem.setAttribute("type", option.type ?? "checkbox");
|
||||
if (option.checked === true) {
|
||||
menuItem.setAttribute("checked", "true");
|
||||
}
|
||||
}
|
||||
|
||||
if (option.l10nArgs) {
|
||||
|
||||
Reference in New Issue
Block a user