aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index b490c6177..5c914e3a8 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -53,16 +53,10 @@ function tabs(elem, indirect) {
$(function(){
var $html = $('html');
- var cobrand;
+ var cobrand = $('meta[name="cobrand"]').attr('content');
var is_small_map = false;
- if (window.location.href.indexOf('bromley') != -1) {
- cobrand = 'bromley';
+ if (cobrand === 'bromley' || cobrand === 'oxfordshire') {
is_small_map = true;
- } else if (window.location.href.indexOf('oxfordshire') != -1) {
- cobrand = 'oxfordshire';
- is_small_map = true;
- } else if (window.location.href.indexOf('zurich') != -1 || window.location.href.indexOf('zueri') != -1) {
- cobrand = 'zurich';
}
// Deal with switching between mobile and desktop versions on resize