why does in the example 1 the console log is executed while in example 2 it's not executed ?
//Example 1
try {
console.log("Trying to connect");
google.script.run
.withSuccessHandler( function(response) {
console.log(response);
})
.sendText(data);
} catch {
console.log("No connection");
}
//Example 2
try {
google.script.run
.withSuccessHandler( function(response) {
console.log(response);
})
.sendText(data);
console.log("Trying to connect");
} catch {
console.log("No connection");
}
Thanks in advance
console.log? unclear.