mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-19 08:31:35 +03:00
b9a9de6b64
* remove bench test lock Signed-off-by: David Lemarier <david@lemarier.ca> * use tauri commands to close the app Signed-off-by: David Lemarier <david@lemarier.ca>
38 lines
996 B
HTML
38 lines
996 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<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('tauri', {
|
|
__tauriModule: 'Fs',
|
|
message: {
|
|
cmd: 'readBinaryFile',
|
|
path: '.tauri_3mb.json',
|
|
options: {
|
|
// home folder
|
|
dir: 11
|
|
}
|
|
}
|
|
})
|
|
.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>
|