summaryrefslogtreecommitdiff
path: root/common/content
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-10-04 07:02:51 -0400
committerKris Maglione <maglione.k@gmail.com>2011-10-04 07:02:51 -0400
commita96716c2d8021564dbe8b2c54b35bd25466f0c0f (patch)
tree5f033a707eb2aabd92292f6c15c13f11cf0fb2cf /common/content
parentc36c9d618573695adfce3e87ce17a021ccfd8bb1 (diff)
downloadpentadactyl-a96716c2d8021564dbe8b2c54b35bd25466f0c0f.tar.gz
Fix caret mode bug.
Diffstat (limited to 'common/content')
-rw-r--r--common/content/editor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/content/editor.js b/common/content/editor.js
index 8735344f..7e83fd65 100644
--- a/common/content/editor.js
+++ b/common/content/editor.js
@@ -22,7 +22,7 @@ var Editor = Module("editor", {
return elem.inputField || elem;
let win = document.commandDispatcher.focusedWindow;
- return DOM(win).isEditable && win;
+ return DOM(win).isEditable && win || null;
});
},