Newton-Editor/newton/settings-manager.js

35 lines
518 B
JavaScript
Raw Normal View History

2025-06-08 04:38:42 +00:00
const { newtonFs } = require('./fs');
let config = {};
const loadsettings = () => {
config = JSON.parse(
newtonFs.getSettingsConfigData()
);
}
const getConfig = () => {
return config;
}
const saveConfig = () => {
console.log(config);
}
const getIconPath = () => {
return newtonFs.getIconPath();
}
module.exports = {
settingsManager: {
getIconPath: getIconPath,
loadsettings: loadsettings,
getConfig: getConfig,
saveConfig: saveConfig,
}
};