(path)
| 631 | } |
| 632 | |
| 633 | async 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 | |
| 646 | main(); |
| 647 | async function main() { |