end of using REFS
This commit is contained in:
17
index.html
17
index.html
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user