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:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user