fix breakage from last commit

This commit is contained in:
Stefan Breunig 2013-03-11 20:34:14 +01:00
parent d3270f698c
commit 8f76951ca3

View File

@ -107,7 +107,7 @@ window.rangeLinkClick = function() {
}
window.showPortalPosLinks = function(lat, lng) {
if (android && android.intentPosLink) {
if (typeof android !== 'undefined' && android && android.intentPosLink) {
android.intentPosLink('https://maps.google.com/?q='+lat+','+lng);
} else {
var qrcode = '<div id="qrcode"></div>';