diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-11-15 17:35:29 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-11-15 17:35:29 +0000 |
commit | db75de1ca7268692215dc79f157d61ab7d66fa8e (patch) | |
tree | cb2095aa1f8466919b25674c35f7b8d1bbbabcde /perllib/FixMyStreet/App.pm | |
parent | 52ab72ad43b391b0f3b6f7385b5ba723cc1a4aba (diff) | |
parent | f59e12ee3fa9c65f178a300954586f6ac91bba79 (diff) |
Merge branch '1901-js-deferring'
Updated geolocation.js with concurrent changes.
Diffstat (limited to 'perllib/FixMyStreet/App.pm')
-rw-r--r-- | perllib/FixMyStreet/App.pm | 2 |
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; |