mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 13:47:57 +01:00
Trivial refactoring of buffer.shiftFrameFocus.
It's a bit nicer to test against types rather than attribute strings.
This commit is contained in:
@@ -1392,7 +1392,7 @@ function Buffer() //{{{
|
||||
|
||||
// find all frames - depth-first search
|
||||
(function (frame) {
|
||||
if (frame.document.body.localName.toLowerCase() == "body")
|
||||
if (frame.document.body instanceof HTMLBodyElement)
|
||||
frames.push(frame);
|
||||
Array.forEach(frame.frames, arguments.callee);
|
||||
})(window.content);
|
||||
|
||||
Reference in New Issue
Block a user