asarfuckery/appasar/ptb/app_bootstrap/appSettings.js

29 lines
833 B
JavaScript
Raw Normal View History

2019-01-17 18:22:05 +00:00
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.init = init;
exports.getSettings = getSettings;
var _Settings = require('../common/Settings');
var _Settings2 = _interopRequireDefault(_Settings);
var _paths = require('../common/paths');
var paths = _interopRequireWildcard(_paths);
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2019-01-19 00:58:12 +00:00
let settings;
2019-01-17 18:22:05 +00:00
function init() {
settings = new _Settings2.default(paths.getUserData());
}
function getSettings() {
return settings;
}