1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 04:07:59 +01:00

access MarkupDocumentViewer via getBrowser() - only FF defines getMarkupDocumentViewer

This commit is contained in:
Doug Kearns
2008-12-18 21:05:42 +11:00
parent c11e153766
commit 0841a01e15
2 changed files with 3 additions and 19 deletions

View File

@@ -172,24 +172,8 @@ function Buffer() //{{{
"Show current website with a minimal style sheet to make it easily accessible",
"boolean", false,
{
setter: function (value)
{
try
{
window.getMarkupDocumentViewer().authorStyleDisabled = value;
}
catch (e) {}
return value;
},
getter: function ()
{
try
{
return window.getMarkupDocumentViewer().authorStyleDisabled;
}
catch (e) {}
}
setter: function (value) getBrowser().markupDocumentViewer.authorStyleDisabled = value,
getter: function () getBrowser().markupDocumentViewer.authorStyleDisabled
});
/////////////////////////////////////////////////////////////////////////////}}}