mirror of https://github.com/Kylart/KawAnime.git
Fix wrong handling of paste event that would result in streaming from a magnet if pasting into input for download for eg
This commit is contained in:
parent
675ae8e71e
commit
1829b94752
|
@ -14,9 +14,14 @@ export default {
|
|||
},
|
||||
|
||||
methods: {
|
||||
/**
|
||||
* @param {ClipboardEvent} e
|
||||
*/
|
||||
handlePaste (e) {
|
||||
const text = e.clipboardData.getData('text')
|
||||
|
||||
if (e.target.tagName.toUpperCase() === 'INPUT') return
|
||||
|
||||
if (/magnet:\?/.test(text)) {
|
||||
if (!this.isClientPage) {
|
||||
e.preventDefault()
|
||||
|
|
Loading…
Reference in New Issue