class HostConfig { static fromConfigData(host, content) { if (typeof content === "string") { content = JSON.parse(content); } var host = new HostConfig(host); host.config.data = content; // La horzonoj ne devenas el la konfiguraĵo de la servilo // sed povas deveni el sessionStorage. if (content.timezones) { host.timezones = content.timezones; } return host; } constructor(host) { this.host = host; this.config = {}; this.timezones = []; } setTimezonesFromData(timezones) { this.timezones = timezones; } }