()
| 39 | } |
| 40 | |
| 41 | export function initSettingsValues() { |
| 42 | const approvalRadio = document.querySelector(`input[name="approval-mode"][value="${approvalMode}"]`); |
| 43 | if (approvalRadio) approvalRadio.checked = true; |
| 44 | updateApprovalActive(); |
| 45 | |
| 46 | const themeRadio = document.querySelector(`input[name="theme-mode"][value="${themeMode}"]`); |
| 47 | if (themeRadio) themeRadio.checked = true; |
| 48 | updateThemeActive(); |
| 49 | } |
| 50 | |
| 51 | function openSettings() { |
| 52 | initSettingsValues(); |
no test coverage detected