MCPcopy Create free account
hub / github.com/MALSync/MALSync / resetOnline

Function resetOnline

test/headless/test.js:633–644  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

631}
632
633async function resetOnline(path) {
634 fs.readFile(path, 'utf8', function(err, data) {
635 if (err) {
636 return console.log(err);
637 }
638 const result = data.replace(/"offline" *: *true *,/g, `"offline": false,`);
639
640 fs.writeFile(path, result, 'utf8', function(err) {
641 if (err) return console.log(err);
642 });
643 });
644}
645
646main();
647async function main() {

Callers 1

testPageCaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected