Newton-Editor/newton/settings-manager.js

29 lines
418 B
JavaScript

const { newtonFs } = require('./fs');
let data = {};
const loadsettings = () => {
data = JSON.parse(
newtonFs.getSettingsConfigData()
);
}
const getData = () => {
return data;
}
const getIconPath = () => {
return newtonFs.getIconPath();
}
module.exports = {
settingsManager: {
loadsettings: loadsettings,
getData: getData,
getIconPath: getIconPath,
}
};