config.js 404 B

1234567891011121314151617181920
  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. }
  9. setConfig (opts) {
  10. for (const key in opts) {
  11. if(this.hasOwnProperty(key)){
  12. this[key] = opts[key];
  13. }
  14. }
  15. }
  16. }
  17. let config = new ConfigObject();
  18. export const Config = config;