mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-14 00:14:04 +09:00
Add missing preventDefault
This commit is contained in:
@@ -44,7 +44,7 @@
|
|||||||
<a class="panel-block"
|
<a class="panel-block"
|
||||||
href="{'#/'}"
|
href="{'#/'}"
|
||||||
class:is-disabled={!$apiKeyStorage}
|
class:is-disabled={!$apiKeyStorage}
|
||||||
on:click={() => {
|
on:click|preventDefault={() => {
|
||||||
const confirmDelete = window.confirm('Are you sure you want to delete all your chats?')
|
const confirmDelete = window.confirm('Are you sure you want to delete all your chats?')
|
||||||
if (confirmDelete) {
|
if (confirmDelete) {
|
||||||
replace('#/').then(() => clearChats())
|
replace('#/').then(() => clearChats())
|
||||||
|
|||||||
Reference in New Issue
Block a user