{"action":"opened","issue":{"url":"https://api.github.com/repos/sindresorhus/electron-dl/issues/28","repository_url":"https://api.github.com/repos/sindresorhus/electron-dl","labels_url":"https://api.github.com/repos/sindresorhus/electron-dl/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/electron-dl/issues/28/comments","events_url":"https://api.github.com/repos/sindresorhus/electron-dl/issues/28/events","html_url":"https://github.com/sindresorhus/electron-dl/issues/28","id":261907601,"number":28,"title":"Cannot read property 'fromWebContents' of undefined","user":{"login":"salehmosleh","id":3959998,"avatar_url":"https://avatars2.githubusercontent.com/u/3959998?v=4","gravatar_id":"","url":"https://api.github.com/users/salehmosleh","html_url":"https://github.com/salehmosleh","followers_url":"https://api.github.com/users/salehmosleh/followers","following_url":"https://api.github.com/users/salehmosleh/following{/other_user}","gists_url":"https://api.github.com/users/salehmosleh/gists{/gist_id}","starred_url":"https://api.github.com/users/salehmosleh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salehmosleh/subscriptions","organizations_url":"https://api.github.com/users/salehmosleh/orgs","repos_url":"https://api.github.com/users/salehmosleh/repos","events_url":"https://api.github.com/users/salehmosleh/events{/privacy}","received_events_url":"https://api.github.com/users/salehmosleh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-01T10:49:12Z","updated_at":"2017-10-01T10:49:12Z","closed_at":null,"author_association":"NONE","body":"i use below codes : \r\n\r\n> download(BrowserWindow.getFocusedWindow(), url ,{saveAs:true,openFolderWhenDone:true,onProgress:function(pr){\r\n> \t\t\t\t\t\t//console.log(pr+\" - \");\r\n> \t\t\t\t\t}}) \r\n> \t\t\t\t\t.then(dl => console.log(dl.getSavePath()))\r\n> \t\t\t\t\t.catch(console.error);\r\n\r\nbut i get this error in consol : \r\n\r\n> \r\n> E:\\nodejs\\bireport\\node_modules\\electron-dl\\index.js:37 Uncaught TypeError: Cannot read property 'fromWebContents' of undefined\r\n>     at listener (E:\\nodejs\\bireport\\node_modules\\electron-dl\\index.js:37)\r\n>     at CallbacksRegistry.apply (E:\\nodejs\\bireport\\node_modules\\electron\\dist\\resources\\electron.asar\\common\\api\\callbacks-registry…:48)\r\n>     at EventEmitter.<anonymous> (E:\\nodejs\\bireport\\node_modules\\electron\\dist\\resources\\electron.asar\\renderer\\api\\remote.js:283)\r\n>     at emitThree (events.js:116)\r\n>     at EventEmitter.emit (events.js:194)\r\n> listener @ E:\\nodejs\\bireport\\node_modules\\electron-dl\\index.js:37\r\n> apply @ E:\\nodejs\\bireport\\node_modules\\electron\\dist\\resources\\electron.asar\\common\\api\\callbacks-registry…:48\r\n> (anonymous) @ E:\\nodejs\\bireport\\node_modules\\electron\\dist\\resources\\electron.asar\\renderer\\api\\remote.js:283\r\n> emitThree @ events.js:116\r\n> emit @ events.js:194\r\n\r\nhow can i fix it ?"}}
{"actor":{"display_login":"salehmosleh"}}