From 151ccc62450a0b85f7c36b0f399ce41fabcda941 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Sat, 19 Dec 2020 01:12:31 +0000 Subject: [PATCH] Handle configured logo controls --- src/api.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/api.ts b/src/api.ts index 5e4351d..5a1f2e9 100644 --- a/src/api.ts +++ b/src/api.ts @@ -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, + }); } });