1
0

config.js 337 B

123456789101112131415161718
  1. class ConfigObject {
  2. constructor () {
  3. this.loopTimeout = 5000;
  4. this.decimalPlaces = 5;
  5. this.intConvertRoundMode = 2;
  6. }
  7. setConfig (opts) {
  8. for (const key in opts) {
  9. if(this.hasOwnProperty(key)){
  10. this[key] = opts[key];
  11. }
  12. }
  13. }
  14. }
  15. let config = new ConfigObject();
  16. export const Config = config;