Merge pull request #758 from feross/fix-284
Allow dragging magnet links (Fix #284)
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
"create-torrent": "^3.24.5",
|
"create-torrent": "^3.24.5",
|
||||||
"deep-equal": "^1.0.1",
|
"deep-equal": "^1.0.1",
|
||||||
"dlnacasts": "^0.1.0",
|
"dlnacasts": "^0.1.0",
|
||||||
"drag-drop": "^2.11.0",
|
"drag-drop": "^2.12.1",
|
||||||
"electron-prebuilt": "1.3.2",
|
"electron-prebuilt": "1.3.2",
|
||||||
"fs-extra": "^0.30.0",
|
"fs-extra": "^0.30.0",
|
||||||
"hat": "0.0.3",
|
"hat": "0.0.3",
|
||||||
|
|||||||
@@ -90,8 +90,11 @@ function onState (err, _state) {
|
|||||||
app = ReactDOM.render(<App state={state} />, document.querySelector('#body'))
|
app = ReactDOM.render(<App state={state} />, document.querySelector('#body'))
|
||||||
|
|
||||||
// OS integrations:
|
// OS integrations:
|
||||||
// ...drag and drop a torrent or video file to play or seed
|
// ...drag and drop files/text to start torrenting or seeding
|
||||||
dragDrop('body', onOpen)
|
dragDrop('body', {
|
||||||
|
onDrop: onOpen,
|
||||||
|
onDropText: onOpen
|
||||||
|
})
|
||||||
|
|
||||||
// ...same thing if you paste a torrent
|
// ...same thing if you paste a torrent
|
||||||
document.addEventListener('paste', onPaste)
|
document.addEventListener('paste', onPaste)
|
||||||
|
|||||||
Reference in New Issue
Block a user