dlg = UI::HtmlDialog.new({
dialog_title: "test"
})
dlg.add_action_callback('say'){|context, params|
p params['a'].to_i # this returns the Integer, which will crash (SU21Win #336997)
# Return nil or a string or a smaller int will work
}
dlg.set_html(%Q{
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script>
sketchup.say({a:'2220166733'})
</script>
</body>
</html>
})
dlg.show
https://forums.sketchup.com/t/htmldialog-bug/187172/6?u=tt_su
Relates to #753