Handle configured logo controls

This commit is contained in:
James Lyne 2020-12-19 01:12:31 +00:00
parent 11fbc069be
commit 151ccc6245

View File

@ -179,6 +179,15 @@ function buildComponents(response: any): DynmapComponentConfig {
showDigitalClock: component.showdigitalclock || false,
showWeather: component.showweather || false,
}
break;
case "logo":
components.logoControls.push({
text: component.text || '',
url: component.linkurl || undefined,
position: component.position.replace('-', '') || 'topleft',
image: component.logourl || undefined,
});
}
});