check for android interface before calling functions of it
This commit is contained in:
@ -126,7 +126,9 @@ window.runOnSmartphonesAfterBoot = function() {
|
||||
var overlayLayersJSON = JSON.stringify(overlayLayers);
|
||||
var baseLayersJSON = JSON.stringify(baseLayers);
|
||||
|
||||
if (typeof android !== 'undefined' && android && android.setLayers) {
|
||||
android.setLayers(baseLayersJSON, overlayLayersJSON);
|
||||
}
|
||||
|
||||
return {
|
||||
baseLayers: baseLayers,
|
||||
|
Reference in New Issue
Block a user