aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-11-14 12:32:28 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-11-15 15:57:38 +0000
commit5846b85b117714041be38ae4a79c2a849aba73ae (patch)
tree1b015825325dd8f433640f9553c892336a802738 /perllib/FixMyStreet/App.pm
parent15acb885f5240f63a5e19c4474851291518f0677 (diff)
Move map JS to code, to be used on all pages.
Diffstat (limited to 'perllib/FixMyStreet/App.pm')
-rw-r--r--perllib/FixMyStreet/App.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm
index a0477ca40..1eb197e38 100644
--- a/perllib/FixMyStreet/App.pm
+++ b/perllib/FixMyStreet/App.pm
@@ -212,6 +212,8 @@ sub setup_request {
Memcached::set_namespace( FixMyStreet->config('FMS_DB_NAME') . ":" );
FixMyStreet::Map::set_map_class( $cobrand->map_type || $c->get_param('map_override') );
+ # All pages need this, either loading it or prefetching it
+ $c->stash->{map_js} = FixMyStreet::Map::map_javascript();
unless ( FixMyStreet->config('MAPIT_URL') ) {
my $port = $c->req->uri->port;