1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-19 14:55:47 +01:00

Only include active downloads in :downloads totals. Closes issue #726.

This commit is contained in:
Kris Maglione
2011-12-05 17:17:59 -05:00
parent 0b03a64e70
commit 482c072068
2 changed files with 14 additions and 7 deletions

View File

@@ -385,8 +385,13 @@ var DOM = Class("DOM", {
return;
this[0] instanceof Ci.nsIDOMNSEditableElement;
if (this[0].editor instanceof Ci.nsIEditor)
var editor = this[0].editor;
try {
if (this[0].editor instanceof Ci.nsIEditor)
var editor = this[0].editor;
}
catch (e) {
util.reportError(e);
}
try {
if (!editor)