/
githubmirror
/
tauri
Обзор
Документация
Войти
/
githubmirror
/
tauri
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
bench/tests/files_transfer/public/index.html
30 строк
752 B
Amr Bashir
Restructure the repository (#10796)
28 авг 2024, 00:42
Не верифицирован
28 авг 2024, 00:42
36eee37
Код
Авторство
О чём код?
<!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__.core .invoke('read_file') .then((_data) => { // success window.__TAURI__.core.invoke('app_should_close', { exitCode: 0 }) }) .catch((_error) => { // error window.__TAURI__.core.invoke('app_should_close', { exitCode: 1 }) }) }) </script> </body> </html>