(section_id)
| 192 | } |
| 193 | |
| 194 | function loadDefaultSettingsSection(section_id) { |
| 195 | CURRENTLY_LOADING_SETTINGS = true |
| 196 | var section = SETTINGS_SECTIONS.find((s) => s.id == section_id) |
| 197 | section.keys.forEach((key) => { |
| 198 | var setting = SETTINGS[key] |
| 199 | setting.value = setting.default |
| 200 | setSetting(setting.element, setting.value) |
| 201 | }) |
| 202 | CURRENTLY_LOADING_SETTINGS = false |
| 203 | saveSettings() |
| 204 | } |
| 205 | |
| 206 | function settingChangeHandler(event) { |
| 207 | if (!CURRENTLY_LOADING_SETTINGS) { |
no test coverage detected