1
0

config.js 367 B

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