mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 11:36:23 +00:00
fix: ctrl+click with spa enabled
This commit is contained in:
parent
3268d45a20
commit
f66d2c23ac
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ function createRouter() {
|
|||
if (typeof window !== "undefined") {
|
||||
window.addEventListener("click", async (event) => {
|
||||
const { url } = getOpts(event) ?? {}
|
||||
if (!url) return
|
||||
if (!url || event.ctrlKey || event.metaKey) return
|
||||
event.preventDefault()
|
||||
try {
|
||||
navigate(url, false)
|
||||
|
|
Loading…
Reference in a new issue