1
0

config.js 497 B

12345678910111213141516171819202122
  1. class ConfigObject {
  2. constructor () {
  3. this.loopTimeout = 5000;
  4. this.decimalPlaces = 8;
  5. this.intConvertRoundMode = 2;
  6. this.default_lang = 'pt';
  7. this.enable_type_casting = true;
  8. this.idle_input_interval = 5000;
  9. this.max_call_stack = 100;
  10. }
  11. setConfig (opts) {
  12. for (const key in opts) {
  13. if(Object.prototype.hasOwnProperty.call(this, key)){
  14. this[key] = opts[key];
  15. }
  16. }
  17. }
  18. }
  19. const config = new ConfigObject();
  20. export const Config = config;