end of using REFS

This commit is contained in:
poslop
2024-06-06 00:11:57 -05:00
parent c60c8fee4b
commit f064e3eb9a
15 changed files with 192 additions and 131 deletions

View File

@@ -6,6 +6,19 @@
<link data-trunk rel="css" href="styles.css" />
<link data-trunk rel="copy-dir" href="public" />
</head>
<body></body>
d
<body>
<script>
// access the pre-bundled global API functions
const { invoke } = window.__TAURI__.tauri
// now we can call our Command!
// You will see "Welcome from Tauri" replaced
// by "Hello, World!"!
invoke('init_config', { name: 'World' })
// `invoke` returns a Promise
.then((response) => {
window.header.innerHTML = response
})
</script>
</body>
</html>