tauri/tooling/bench/tests/files_transfer/public/index.html
Lucas Fernandes Nogueira e63111b65a
chore: remove v1 references on documentation and benchmark (#7258)
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2023-06-19 09:47:51 -03:00

26 lines
674 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Welcome to Tauri!</title>
</head>
<body>
<h1>Welcome to Tauri!</h1>
<script>
window.addEventListener('DOMContentLoaded', (event) => {
window.__TAURI__.invoke('read_file')
.then((_data) => {
// success
window.__TAURI__.invoke('app_should_close', { exitCode: 0 })
})
.catch((_error) => {
// error
window.__TAURI__.invoke('app_should_close', { exitCode: 1 })
})
})
</script>
</body>
</html>