1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 06: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", "Show current website with a minimal style sheet to make it easily accessible",
"boolean", false, "boolean", false,
{ {
setter: function (value) setter: function (value) getBrowser().markupDocumentViewer.authorStyleDisabled = value,
{ getter: function () getBrowser().markupDocumentViewer.authorStyleDisabled
try
{
window.getMarkupDocumentViewer().authorStyleDisabled = value;
}
catch (e) {}
return value;
},
getter: function ()
{
try
{
return window.getMarkupDocumentViewer().authorStyleDisabled;
}
catch (e) {}
}
}); });
/////////////////////////////////////////////////////////////////////////////}}} /////////////////////////////////////////////////////////////////////////////}}}

View File

@@ -254,7 +254,7 @@ function Hints() //{{{
// 'usermode' appropriately? We're generally not very well integrated // 'usermode' appropriately? We're generally not very well integrated
// into FF so having menu items toggle Vimperator options may be // into FF so having menu items toggle Vimperator options may be
// confusing. --djk // confusing. --djk
if (window.getMarkupDocumentViewer().authorStyleDisabled) if (getBrowser().markupDocumentViewer.authorStyleDisabled)
{ {
let css = []; let css = [];
// FIXME: Broken for imgspans. // FIXME: Broken for imgspans.