123456789101112131415161718 |
- class ConfigObject {
- constructor () {
- this.loopTimeout = 5000;
- this.decimalPlaces = 5;
- this.intConvertRoundMode = 2;
- }
- setConfig (opts) {
- for (const key in opts) {
- if(this.hasOwnProperty(key)){
- this[key] = opts[key];
- }
- }
- }
- }
- let config = new ConfigObject();
- export const Config = config;
|