diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-03-01 09:57:01 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-03-01 09:57:01 +0000 |
commit | acf90f1d126a4d8bf4d269c8241aa8631b131571 (patch) | |
tree | 9668a36d42fede21ff2666ae96c1770c32c29d9d | |
parent | 00115a2171a6ae6877a9ed668f84254db78574f3 (diff) |
Check fixmystreet object exists, it might not.
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index 85b0e6f43..533795596 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -80,7 +80,7 @@ $(function(){ //add mobile class if small screen if(Modernizr.mq('only screen and (max-width:48em)')) { $('html').addClass('mobile'); - if (fixmystreet.page == 'around') { + if (typeof fixmystreet !== 'undefined' && fixmystreet.page == 'around') { // Immediately go full screen map if on around page $('#site-header').hide(); $('#map_box').prependTo('.wrapper').css({ |