MCPcopy
hub / github.com/Tampermonkey/tampermonkey / updateHash

Function updateHash

src/background.js:3477–3484  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3475 if (V) console.log(durl);
3476
3477 var updateHash = function() {
3478 // call only if local and remove script version do match
3479 if (obj.r.meta) {
3480 if (V || UV) console.log("bg: update hash of script " + r.script.name + " to " + obj.r.meta[cUSOHASH]);
3481 obj.r.script.hash = obj.r.meta[cUSOHASH];
3482 storeScript(obj.r.script.name, obj.r.script, false);
3483 }
3484 };
3485
3486 var ret = ScriptUpdater.srcCmp(req.responseText);
3487 if (ret == eNEWER || r.hash_different) {

Callers 1

cbFunction · 0.85

Calls 1

storeScriptFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…