From 83c55ccd85518823aeaea5b982d72f7f92b310b8 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Tue, 9 Jul 2013 12:06:02 +0100 Subject: correct logic in map platofrm check to fail if no device variable defined --- www/js/map-OpenLayers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'www/js/map-OpenLayers.js') 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'; } -- cgit v1.2.3