summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-29 08:52:24 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-29 08:52:24 +0200
commite7d37d5a81537668a71d373c8eb59d08242c25d4 (patch)
treed208d334d9d5dd6dc2a0b1f3dae7985e567573f9 /lib
parentcd1dc7572478988591389f75e15109419089c440 (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.pm1
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm1
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;