diff --git a/package.json b/package.json index d80c31158f..fc34ac6de0 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "create-torrent": "^3.24.5", "deep-equal": "^1.0.1", "dlnacasts": "^0.1.0", - "drag-drop": "^2.11.0", + "drag-drop": "^2.12.1", "electron-prebuilt": "1.3.2", "fs-extra": "^0.30.0", "hat": "0.0.3", diff --git a/src/renderer/main.js b/src/renderer/main.js index b131d997b2..2fc32c3eb5 100644 --- a/src/renderer/main.js +++ b/src/renderer/main.js @@ -90,8 +90,11 @@ function onState (err, _state) { app = ReactDOM.render(, document.querySelector('#body')) // OS integrations: - // ...drag and drop a torrent or video file to play or seed - dragDrop('body', onOpen) + // ...drag and drop files/text to start torrenting or seeding + dragDrop('body', { + onDrop: onOpen, + onDropText: onOpen + }) // ...same thing if you paste a torrent document.addEventListener('paste', onPaste)