summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/VNBrowse.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2014-12-01 17:25:10 +0100
committerYorhel <git@yorhel.nl>2014-12-01 17:25:10 +0100
commit0d191b5cd8c79eef3cef63c40ded96506a40382a (patch)
tree8feeb96f65f9a399adf8534b0661898bce9a986f /lib/VNDB/Handler/VNBrowse.pm
parent00cd3dbfa11a4556cf32cd3790f043737b226506 (diff)
Don't use inline script tag to pass pref_code to JS
This also simplifies the code a bit, as the value of the preference data was never used so doesn't need to be included now. Primary reason for this change is to work towards disabling inline JS with a CSP header. There's still more stuff to fix before the CSP header can be applied, though.
Diffstat (limited to 'lib/VNDB/Handler/VNBrowse.pm')
-rw-r--r--lib/VNDB/Handler/VNBrowse.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/VNBrowse.pm b/lib/VNDB/Handler/VNBrowse.pm
index f714b93e..7af01048 100644
--- a/lib/VNDB/Handler/VNBrowse.pm
+++ b/lib/VNDB/Handler/VNBrowse.pm
@@ -100,7 +100,7 @@ sub list {
end 'form';
$self->htmlBrowseVN($list, $f, $np, "/v/$char?q=$quri;fil=$f->{fil}", $f->{fil} =~ /tag_inc-/);
- $self->htmlFooter(prefs => ['filter_vn']);
+ $self->htmlFooter(pref_code => 1);
}