(options)
| 197 | } |
| 198 | |
| 199 | function syncAutoDarkMode(options) { |
| 200 | options = options || {}; |
| 201 | let enabled = getAutoDarkModeState(options.settings); |
| 202 | if (options.applyFilter) { |
| 203 | turnLight(enabled); |
| 204 | } |
| 205 | emitAutoDarkModeChange(enabled, options.force); |
| 206 | return enabled; |
| 207 | } |
| 208 | |
| 209 | function syncAutoDarkModeFromStorage(options) { |
| 210 | options = options || {}; |
no test coverage detected