diff --git a/src/renderer/mixins/global/readMagnet.js b/src/renderer/mixins/global/readMagnet.js index b04339d..6566213 100644 --- a/src/renderer/mixins/global/readMagnet.js +++ b/src/renderer/mixins/global/readMagnet.js @@ -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()