ui: 點擊聊天文件不會再跳轉的同時並下載了, 只會進行下載

This commit is contained in:
CrescentLeaf
2025-10-02 23:38:43 +08:00
parent 67c6f11892
commit 14c279cc80

View File

@@ -23,7 +23,6 @@ customElements.define('chat-file', class extends HTMLElement {
// deno-lint-ignore no-window // deno-lint-ignore no-window
e.onclick = (e) => { e.onclick = (e) => {
e.stopPropagation() e.stopPropagation()
window.open(href, '_blank')
} }
this.appendChild(e) this.appendChild(e)
} }