2021-05-21 22:50:40 +03:00
|
|
|
<!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>
|
2021-07-04 01:48:04 +03:00
|
|
|
window.addEventListener('DOMContentLoaded', (event) => {
|
2021-06-23 20:27:19 +03:00
|
|
|
window.__TAURI__
|
2021-07-04 01:48:04 +03:00
|
|
|
.invoke('tauri', {
|
|
|
|
__tauriModule: 'Fs',
|
2021-05-21 22:50:40 +03:00
|
|
|
message: {
|
2021-07-04 01:48:04 +03:00
|
|
|
cmd: 'readBinaryFile',
|
|
|
|
path: '.tauri_3mb.json',
|
2021-06-23 20:27:19 +03:00
|
|
|
options: {
|
|
|
|
// home folder
|
2021-07-04 01:48:04 +03:00
|
|
|
dir: 11
|
|
|
|
}
|
|
|
|
}
|
2021-06-23 20:27:19 +03:00
|
|
|
})
|
|
|
|
.then((_data) => {
|
2021-08-10 06:18:16 +03:00
|
|
|
// success
|
2022-01-04 14:57:50 +03:00
|
|
|
window.__TAURI__.invoke('app_should_close', { exitCode: 0 })
|
2021-06-23 20:27:19 +03:00
|
|
|
})
|
|
|
|
.catch((_error) => {
|
|
|
|
// error
|
2022-01-04 14:57:50 +03:00
|
|
|
window.__TAURI__.invoke('app_should_close', { exitCode: 1 })
|
2021-07-04 01:48:04 +03:00
|
|
|
})
|
|
|
|
})
|
2021-05-21 22:50:40 +03:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|