This commit is contained in:
2023-08-29 20:06:52 +02:00
parent 7c2eec4446
commit 25702c073a
225 changed files with 1071 additions and 808 deletions

View File

@@ -1,4 +1,4 @@
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FileHandler = void 0;
var fs_1 = require("fs");
var path = require("path");
@@ -10,7 +10,7 @@ var FileHandler = /** @class */ (function () {
}
FileHandler.prototype.load = function (callback) {
var _this = this;
Logger_1.Log('info', 'Preparing files');
(0, Logger_1.Log)('info', 'Preparing files');
ensureDir(path.join(Undecked.dataPath), function (err) {
if (err)
throw err;
@@ -40,9 +40,9 @@ var FileHandler = /** @class */ (function () {
});
};
FileHandler.prototype.saveConfig = function (callback) {
fs_1.writeFile(this.configPath, JSON.stringify(Config, null, 4), function (err) {
(0, fs_1.writeFile)(this.configPath, JSON.stringify(Config, null, 4), function (err) {
if (err)
Logger_1.Log('error', 'Error whilst saving config', err.message);
(0, Logger_1.Log)('error', 'Error whilst saving config', err.message);
if (callback)
callback();
});