Refactor main.js: torrent list controller

This commit is contained in:
DC
2016-06-30 19:19:10 -07:00
parent 4319ef2853
commit f85e0a61b1
5 changed files with 422 additions and 347 deletions

View File

@@ -116,6 +116,12 @@ function getApproxNumTorrents (state) {
// An uncaught error happened in the main process or in one of the windows
function logUncaughtError (procName, err) {
console.error('uncaught error', procName, err)
// Not initialized yet? Ignore.
// Hopefully uncaught errors immediately on startup are fixed in dev
if (!telemetry) return
var message, stack
if (typeof err === 'string') {
message = err