summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-06-28 10:43:12 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-06-28 10:43:12 +0200
commitbcdadd4c763f0fb530ff10ee4a3b086cd66149c8 (patch)
treefc41fb411c7623ad61bc96c6bfe3e56935882676 /lib/DBInfoscreen.pm
parent9710189897448f3f4a144e27325578c900250068 (diff)
Partially refactor handle_request
Diffstat (limited to 'lib/DBInfoscreen.pm')
-rw-r--r--lib/DBInfoscreen.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/DBInfoscreen.pm b/lib/DBInfoscreen.pm
index 83b7103..e7bdf80 100644
--- a/lib/DBInfoscreen.pm
+++ b/lib/DBInfoscreen.pm
@@ -142,8 +142,9 @@ sub startup {
$self->helper(
'handle_no_results_json' => sub {
- my ( $self, $backend, $station, $errstr, $api_version, $callback )
- = @_;
+ my ( $self, $backend, $station, $errstr, $api_version ) = @_;
+
+ my $callback = $self->param('callback');
$self->res->headers->access_control_allow_origin(q{*});
my $json;