diff options
author | Struan Donald <struan@exo.org.uk> | 2019-10-01 14:15:02 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2019-10-01 14:50:36 +0100 |
commit | 9b1ace975e4e6693eac24a6f4bc3c4436e1c2c21 (patch) | |
tree | a31068a2c74f57fb1b6cfd40fdd390ee16597a69 | |
parent | 977a546cd51fa0e9d88451dcdfe59c68c9017e8d (diff) |
[IsleOfWight] use appropriate asset server on staging/live
Change the tilma url based on whether we are using the live or staging
site.
-rw-r--r-- | web/cobrands/isleofwight/assets.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/web/cobrands/isleofwight/assets.js b/web/cobrands/isleofwight/assets.js index a68b0418b..9d5c8de50 100644 --- a/web/cobrands/isleofwight/assets.js +++ b/web/cobrands/isleofwight/assets.js @@ -4,9 +4,14 @@ if (!fixmystreet.maps) { return; } +var is_live = false; +if ( location.hostname === 'www.fixmystreet.com' || location.hostname === 'fms.islandroads.com' ) { + is_live = true; +} + var defaults = { http_options: { - url: "https://tilma.staging.mysociety.org/mapserver/iow", + url: is_live ? "https://tilma.mysociety.org/mapserver/iow": "https://staging.tilma.mysociety.org/mapserver/iow", params: { SERVICE: "WFS", VERSION: "1.1.0", |