diff options
author | Struan Donald <struan@exo.org.uk> | 2013-07-09 12:06:02 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-07-09 12:06:02 +0100 |
commit | 83c55ccd85518823aeaea5b982d72f7f92b310b8 (patch) | |
tree | 6804b870e4441de090eb04f6f3456a96479c5e00 /www/js/map-OpenLayers.js | |
parent | fcf0004d902cee73deee914774dd5aa46adb6cf4 (diff) |
correct logic in map platofrm check to fail if no device variable defined
Diffstat (limited to 'www/js/map-OpenLayers.js')
-rw-r--r-- | www/js/map-OpenLayers.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www/js/map-OpenLayers.js b/www/js/map-OpenLayers.js index b68b47e..9b62c22 100644 --- a/www/js/map-OpenLayers.js +++ b/www/js/map-OpenLayers.js @@ -67,9 +67,9 @@ function fixmystreet_onload() { }); var location_img = 'images/pin.png'; var location_bg_img = 'images/pin_shadow.png'; - if ( typeof device !== 'undefined' && + if ( typeof device !== 'undefined' && ( (device.platform == 'Android' && parseInt(device.version, 10) > 2) || - (device.platform !== 'Android') ) { + (device.platform !== 'Android') ) ) { location_img = 'images/pin.svg'; location_bg_img = 'images/pin_shadow.svg'; } |