Skip to content

Commit

Permalink
feat: file drop
Browse files Browse the repository at this point in the history
  • Loading branch information
beeb committed Apr 5, 2023
1 parent f046dc9 commit 6066fb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" href="data:;base64,iVBORw0KGgo=" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tauri + Svelte + TS</title>
</head>

<body>
Expand Down
5 changes: 5 additions & 0 deletions src/App.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<script lang="ts">
import { listen } from '@tauri-apps/api/event'
listen('tauri://file-drop', (event) => {
const path = event.payload[0]
})
</script>

<main class="container">Hi</main>
Expand Down

0 comments on commit 6066fb9

Please sign in to comment.