tauri/examples/file-associations/index.html
Bo 3b98141aa2
feat: add file association support, closes #3736 (#4320)
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Raphii <iam@raphii.co>
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2023-07-16 18:34:43 -03:00

26 lines
528 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>File Associations</title>
</head>
<body>
<h1>File Associations</h1>
<div id="files"></div>
<script>
const d = document.getElementById('files')
d.textContent = window.openedUrls
window.onFileOpen = (files) => {
console.log(files)
d.textContent = files
}
</script>
</body>
</html>