()
| 142 | }; |
| 143 | |
| 144 | private static isExtensionSwitchedOn() { |
| 145 | return ( |
| 146 | Extension.autoState === 'turn-on' || |
| 147 | Extension.autoState === 'scheme-dark' || |
| 148 | Extension.autoState === 'scheme-light' || |
| 149 | (Extension.autoState === '' && UserStorage.settings.enabled) |
| 150 | ); |
| 151 | } |
| 152 | |
| 153 | private static updateAutoState() { |
| 154 | const {mode, behavior, enabled} = UserStorage.settings.automation; |
no outgoing calls
no test coverage detected