1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 20:27:58 +01:00

Get rid of template.maybeXML.

This commit is contained in:
Kris Maglione
2010-12-10 07:43:13 -05:00
parent 36205c6c0e
commit a1c93979ae
4 changed files with 9 additions and 20 deletions

View File

@@ -1158,7 +1158,8 @@ const Buffer = Module("buffer", {
elem = find(doc.body || doc.getElementsByTagName("body")[0] ||
doc.documentElement);
}
return elem;
let doc = buffer.focusedFrame.document;
return elem || doc.body || doc.documentElement;
},
scrollVertical: function scrollVertical(elem, increment, number) {