MCPcopy Index your code
hub / github.com/ClearURLs/Addon / deactivateOnFailure

Function deactivateOnFailure

clearurls.js:248–256  ·  view source on GitHub ↗

* Deactivates ClearURLs, if no rules can be downloaded and also no old rules in storage

()

Source from the content-addressed store, hash-verified

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.

Callers 2

getHashFunction · 0.85
fetchFromURLFunction · 0.85

Calls 3

changeIconFunction · 0.85
storeHashStatusFunction · 0.85
saveOnExitFunction · 0.85

Tested by

no test coverage detected