Run google script web apps in dev mode but not exec mode
I have a script project called displayhtmlfromquerystring,
Script file
function doGet(e){
var html;
if(e.parameter.html)
html=e.parameter.html;
else
html="Error no html";
return HtmlService.createHtmlOutput(html+"<hr/>");
}
I deployed it as a web app, google gave me two links, one ends with "dev" and one ends with "exec".
Running a script with a dev link is fine, but when running with an exec link, the page displays a single word "undefined", I am stuck, can anyone tell me why?
Link my app script https://script.google.com/macros/s/AKfycbyinAHBmjVgKDinY-bCcwQ4bgy87KuibiflG1158qRkBJSSXeMk/exec "
0
user8144578
source
to share