From a4d60a03f68e29e68f341b339f48cae452f8a383 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Mon, 10 Jul 2023 20:57:27 +0200 Subject: pass version via defaults --- lib/DBInfoscreen.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/DBInfoscreen.pm') diff --git a/lib/DBInfoscreen.pm b/lib/DBInfoscreen.pm index bc0f181..fd3ed0b 100644 --- a/lib/DBInfoscreen.pm +++ b/lib/DBInfoscreen.pm @@ -38,6 +38,7 @@ sub startup { ); chomp $self->config->{version}; + $self->defaults( version => $self->config->{version} // 'UNKNOWN' ); # Generally, the reverse proxy handles compression. # Also, Mojolicious compression breaks legacy callback-based JSON endpoints -- cgit v1.2.3