diff options
author | Dave Arter <davea@mysociety.org> | 2016-03-14 10:19:29 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2016-03-15 12:40:24 +0000 |
commit | 4eef3c7e5d067fcf76da2970c957bd34d257a013 (patch) | |
tree | e334f7637356ac92ab454d96c0490af8c6c7a83e | |
parent | fb7c09a78baf4747185c9ac83360035c7ac09a65 (diff) |
Fix ReferenceErrors breaking map on cobrands.
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index d9f2c226a..f01c5142d 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -80,7 +80,7 @@ $(function(){ var cobrand = $('meta[name="cobrand"]').attr('content'); - if (typeof variation !== undefined && variation === 1) { + if (typeof variation !== 'undefined' && variation === 1) { $('input[name=variant]').val(1); } @@ -135,7 +135,7 @@ $(function(){ if (cobrand !== 'oxfordshire') { $('#site-header').show(); } - if (typeof variation !== undefined && variation === 1) { + if (typeof variation !== 'undefined' && variation === 1) { banner_text = 'Click map to request a fix'; } $('.big-green-banner') |