UNPKG

@limetech/lime-elements

Version:
37 lines (32 loc) 794 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const index = require('./index-174a078a.js'); const config = require('./config-e7e1a299.js'); const ConfigComponent = class { constructor(hostRef) { index.registerInstance(this, hostRef); this.config = undefined; } componentDidLoad() { this.setGlobalConfig(); } componentDidUpdate() { this.setGlobalConfig(); } /* * Copy any config settings to the global config object */ setGlobalConfig() { if (!this.config) { return; } for (const key of Object.keys(this.config)) { config.globalConfig[key] = this.config[key]; } } render() { return null; } }; exports.limel_config = ConfigComponent; //# sourceMappingURL=limel-config.cjs.entry.js.map