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

Fix chrome://liberator/content/buffer.js:1797: TypeError: win.document.body is null

This commit is contained in:
Kris Maglione
2009-06-06 14:46:30 -04:00
parent 5f1d15968e
commit 4b46d967bd

View File

@@ -1794,8 +1794,11 @@ function Marks() //{{{
add: function (mark, silent) add: function (mark, silent)
{ {
let win = window.content; let win = window.content;
let doc = win.document;
if (win.document.body.localName.toLowerCase() == "frameset") if (!doc.body)
return;
if (doc.body instanceof HTMLFrameSetElement)
{ {
if (!silent) if (!silent)
liberator.echoerr("Marks support for frameset pages not implemented yet"); liberator.echoerr("Marks support for frameset pages not implemented yet");