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

Function getUpdateCheckCfg

src/background.js:770–782  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

768/* ####### update check #### */
769
770var getUpdateCheckCfg = function() {
771 var fire_dflt = { db_version: 0, last: 0, entries: 0 };
772 var dflt = { scripts: 0, fire: fire_dflt };
773 var last = TM_storage.getValue("TM_update_check", dflt);
774 if (!last) last = dflt;
775 if (last.fire == undefined) {
776 last.fire = fire_dflt;
777 }
778 if (last.scripts == undefined) {
779 last.scripts = 0;
780 }
781 return last;
782};
783
784var setUpdateCheckCfg = function(last) {
785 if (last) TM_storage.setValue("TM_update_check", last);

Callers 4

convertDataFunction · 0.85
background.jsFile · 0.85
prepareFunction · 0.85
createFirePageItemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…