From 4eef3c7e5d067fcf76da2970c957bd34d257a013 Mon Sep 17 00:00:00 2001 From: Dave Arter Date: Mon, 14 Mar 2016 10:19:29 +0000 Subject: Fix ReferenceErrors breaking map on cobrands. --- web/cobrands/fixmystreet/fixmystreet.js | 4 ++-- 1 file 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') -- cgit v1.2.3