mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 10:17:59 +01:00
access MarkupDocumentViewer via getBrowser() - only FF defines getMarkupDocumentViewer
This commit is contained in:
@@ -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) {}
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////}}}
|
/////////////////////////////////////////////////////////////////////////////}}}
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user