From e7d37d5a81537668a71d373c8eb59d08242c25d4 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 29 Apr 2019 08:52:24 +0200 Subject: Switch to App/Mobile first, no longer rely on BrowserDetect plugin "App" with force_mobile=1 is now the default view even on desktop -- The infoscreen template's extra large font wasn't really nice. This breaks the setup of everyone who was relying on infoscreen being the default -- please append `mode=infoscreen` to your requests. --- lib/DBInfoscreen.pm | 1 - lib/DBInfoscreen/Controller/Stationboard.pm | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/DBInfoscreen.pm b/lib/DBInfoscreen.pm index af952c2..422a25d 100644 --- a/lib/DBInfoscreen.pm +++ b/lib/DBInfoscreen.pm @@ -242,7 +242,6 @@ sub startup { ); $self->types->type( json => 'application/json; charset=utf-8' ); - $self->plugin('browser_detect'); } diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm index ed5f2d1..c13ed48 100644 --- a/lib/DBInfoscreen/Controller/Stationboard.pm +++ b/lib/DBInfoscreen/Controller/Stationboard.pm @@ -798,6 +798,7 @@ sub handle_request { $template eq 'single' or $template eq 'multi' ), + force_mobile => ( $template eq 'app' ), ); } return; -- cgit v1.2.3