mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
Improve vanilla app JS
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user