Skip to content

Commit

Permalink
Fix enabling of debug mode in SimpleExample & AdvancedExample for plu…
Browse files Browse the repository at this point in the history
…gin v5
  • Loading branch information
dpa99c committed Feb 25, 2019
1 parent e135728 commit 765f220
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
8 changes: 6 additions & 2 deletions AdvancedExample/www/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@ function navigate(){
enabled: values["should-remember-choice"]
}
},

enableDebug: true,
enableGeocoding: values["enable-geocoding"] === "on"
};
if(platform === "android"){
Expand All @@ -157,6 +155,12 @@ function init() {
$(document).on("resume", updateUI);

ln = launchnavigator;
ln.enableDebug(true, function(){
console.log("Debug mode enabled");
}, function(error){
console.error("Error enabling debug mode: "+error);
});

platform = device.platform.toLowerCase();
if(platform == "android"){
platform = ln.PLATFORM.ANDROID;
Expand Down
7 changes: 6 additions & 1 deletion SimpleExample/www/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,19 @@ function navigate(e){

launchnavigator.navigate(dest, {
start: start,
enableDebug: true,
successCallback: onSuccess,
errorCallback: onError
});
return false;
}

function init() {
launchnavigator.enableDebug(true, function(){
console.log("Debug mode enabled");
}, function(error){
console.error("Error enabling debug mode: "+error);
});

$('#form').submit(navigate);

}
Expand Down

0 comments on commit 765f220

Please sign in to comment.