mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-22 08:13:22 +01:00
commit
4c7b4c7592
@ -608,7 +608,7 @@ document.addEventListener('paste', async (event) => {
|
|||||||
}
|
}
|
||||||
const paste = (event.clipboardData || window.clipboardData).getData('text')
|
const paste = (event.clipboardData || window.clipboardData).getData('text')
|
||||||
const selection = window.getSelection()
|
const selection = window.getSelection()
|
||||||
if (selection.toString().trim().length <= 0 && await parseContent(paste)) {
|
if (paste != "" && selection.toString().trim().length <= 0 && await parseContent(paste)) {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user