mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 00:32:27 +01:00
Fix hints in documents with SVG images, and other corner cases.
This commit is contained in:
@@ -156,8 +156,11 @@ function Hints() //{{{
|
||||
pageHints.push([elem, text, span, null, elem.style.backgroundColor, elem.style.color]);
|
||||
}
|
||||
|
||||
doc.body.appendChild(fragment);
|
||||
docs.push({ doc: doc, start: start, end: pageHints.length - 1 });
|
||||
if (doc.body)
|
||||
{
|
||||
doc.body.appendChild(fragment);
|
||||
docs.push({ doc: doc, start: start, end: pageHints.length - 1 });
|
||||
}
|
||||
|
||||
// also generate hints for frames
|
||||
Array.forEach(win.frames, function (frame) { generate(frame); });
|
||||
|
||||
Reference in New Issue
Block a user