* Deactivates ClearURLs, if no rules can be downloaded and also no old rules in storage
()
| 246 | * Deactivates ClearURLs, if no rules can be downloaded and also no old rules in storage |
| 247 | */ |
| 248 | function deactivateOnFailure() { |
| 249 | if (storage.ClearURLsData.length === 0) { |
| 250 | storage.globalStatus = false; |
| 251 | storage.dataHash = ""; |
| 252 | changeIcon(); |
| 253 | storeHashStatus(5); |
| 254 | saveOnExit(); |
| 255 | } |
| 256 | } |
| 257 | |
| 258 | /** |
| 259 | * Get the hash for the rule file on GitLab. |
no test coverage detected