MCPcopy Create free account
hub / github.com/Tampermonkey/tampermonkey / initCache

Function initCache

src/background.js:1722–1730  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1720 if (cb) cb();
1721 };
1722 var initCache = function() {
1723 if (SV) console.log("bg: init storage cache");
1724 TM_storage.localDB.db.transaction(function(tx) {
1725 tx.executeSql("SELECT * FROM config",
1726 [],
1727 fill,
1728 TM_storage.localDB.onError);
1729 });
1730 };
1731 TM_storage.localDB = {
1732 db: openDatabase('tmStorage', '1.0', 'TM Storage', 30 * 1024 * 1024),
1733 onSuccess : function(tx, result) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…