ui: 點擊聊天文件不會再跳轉的同時並下載了, 只會進行下載
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user