11 lines
258 B
Svelte
11 lines
258 B
Svelte
<script lang="ts">
|
|
import { PlayletApi } from "./PlayletApi";
|
|
|
|
const clearSearchHistory = async () => {
|
|
await PlayletApi.clearSearchHistory();
|
|
};
|
|
</script>
|
|
|
|
<button class="btn" on:click={clearSearchHistory}>Clear search history</button>
|
|
|