Improve vanilla app JS

This commit is contained in:
Lea Anthony
2021-04-04 15:47:03 +10:00
parent a76851463b
commit c23b43c352

View File

@@ -1,12 +1,12 @@
// Get input + focus
var nameElement = document.getElementById("name");
let nameElement = document.getElementById("name");
nameElement.focus();
// Stup the greet function
// Setup the greet function
window.greet = function () {
// Get name
var name = nameElement.value;
let name = nameElement.value;
// Call Basic.Greet(name)
window.backend.main.Basic.Greet(name).then((result) => {