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

Function saveOnDisk

core_js/storage.js:77–86  ·  view source on GitHub ↗

* Save multiple keys on the disk. * @param {String[]} keys

(keys)

Source from the content-addressed store, hash-verified

75 * @param {String[]} keys
76 */
77function saveOnDisk(keys) {
78 let json = {};
79
80 keys.forEach(function (key) {
81 json[key] = storageDataAsString(key);
82 });
83
84 console.log(translate('core_save_on_disk'));
85 browser.storage.local.set(json).catch(handleError);
86}
87
88/**
89 * Schedule to save a key to disk in 30 seconds.

Callers 4

getHashFunction · 0.85
fetchFromURLFunction · 0.85
saveOnExitFunction · 0.85
deferSaveOnDiskFunction · 0.85

Calls 3

storageDataAsStringFunction · 0.85
forEachMethod · 0.80
translateFunction · 0.70

Tested by

no test coverage detected