mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 20:27:58 +01:00
use document.location.href for buffer.URL rather than document.URL since the
latter is undefined for XUL documents
This commit is contained in:
@@ -115,7 +115,9 @@ function Buffer() //{{{
|
|||||||
|
|
||||||
this.__defineGetter__("URL", function()
|
this.__defineGetter__("URL", function()
|
||||||
{
|
{
|
||||||
return window.content.document.URL;
|
// TODO: .URL is not defined for XUL documents
|
||||||
|
//return window.content.document.URL;
|
||||||
|
return window.content.document.location.href;
|
||||||
});
|
});
|
||||||
|
|
||||||
this.__defineGetter__("pageHeight", function()
|
this.__defineGetter__("pageHeight", function()
|
||||||
|
|||||||
Reference in New Issue
Block a user