diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-04-29 08:52:24 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-04-29 08:52:24 +0200 |
commit | e7d37d5a81537668a71d373c8eb59d08242c25d4 (patch) | |
tree | d208d334d9d5dd6dc2a0b1f3dae7985e567573f9 /lib | |
parent | cd1dc7572478988591389f75e15109419089c440 (diff) |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/DBInfoscreen.pm | 1 | ||||
-rw-r--r-- | lib/DBInfoscreen/Controller/Stationboard.pm | 1 |
2 files changed, 1 insertions, 1 deletions
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; |