Fix Exception when dropping .torrent file onto Dock icon when app is closed

Fixes #154
This commit is contained in:
Feross Aboukhadijeh
2016-03-19 15:59:22 -07:00
parent e9db07e855
commit 4f40e5d963
7 changed files with 35 additions and 18 deletions

View File

@@ -7,12 +7,14 @@ module.exports = {
toggleFullScreen: toggleFullScreen
}
var config = require('../config')
var debug = require('debug')('webtorrent-app:menu')
var electron = require('electron')
var windows = require('./windows')
var app = electron.app
var config = require('../config')
var windows = require('./windows')
var appMenu, dockMenu
function init () {
@@ -51,7 +53,6 @@ function toggleDevTools () {
function reloadWindow () {
debug('reloadWindow')
if (windows.main) {
app.startTime = Date.now()
windows.main.webContents.reloadIgnoringCache()
}
}