mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 18:47:59 +01:00
Define missing window#BrowserStop and window#toJavascriptConsole.
This commit is contained in:
@@ -215,13 +215,7 @@ function Buffer() //{{{
|
|||||||
|
|
||||||
mappings.add(myModes, ["<C-c>"],
|
mappings.add(myModes, ["<C-c>"],
|
||||||
"Stop loading",
|
"Stop loading",
|
||||||
function ()
|
function () { window.BrowserStop(); });
|
||||||
{
|
|
||||||
if(config.name == "Xulmus")
|
|
||||||
getBrowser().mCurrentBrowser.stop();
|
|
||||||
else
|
|
||||||
window.BrowserStop();
|
|
||||||
});
|
|
||||||
|
|
||||||
// scrolling
|
// scrolling
|
||||||
mappings.add(myModes, ["j", "<Down>", "<C-e>"],
|
mappings.add(myModes, ["j", "<Down>", "<C-e>"],
|
||||||
@@ -603,13 +597,7 @@ function Buffer() //{{{
|
|||||||
|
|
||||||
commands.add(["st[op]"],
|
commands.add(["st[op]"],
|
||||||
"Stop loading",
|
"Stop loading",
|
||||||
function ()
|
function () { window.BrowserStop(); },
|
||||||
{
|
|
||||||
if (config.name == "Xulmus")
|
|
||||||
getBrowser().mCurrentBrowser.stop();
|
|
||||||
else
|
|
||||||
window.BrowserStop();
|
|
||||||
},
|
|
||||||
{ argCount: "0" });
|
{ argCount: "0" });
|
||||||
|
|
||||||
commands.add(["vie[wsource]"],
|
commands.add(["vie[wsource]"],
|
||||||
|
|||||||
@@ -182,6 +182,7 @@ const config = { //{{{
|
|||||||
liberator.loadModule("hints", Hints);
|
liberator.loadModule("hints", Hints);
|
||||||
// Load the Player module
|
// Load the Player module
|
||||||
liberator.loadModule("player", Player);
|
liberator.loadModule("player", Player);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
////////////////////// STYLES //////////////////////////////////////////////////
|
////////////////////// STYLES //////////////////////////////////////////////////
|
||||||
/////////////////////////////////////////////////////////////////////////////{{{
|
/////////////////////////////////////////////////////////////////////////////{{{
|
||||||
@@ -489,8 +490,17 @@ const config = { //{{{
|
|||||||
options.add(["urlseparator"],
|
options.add(["urlseparator"],
|
||||||
"Set the separator regexp used to separate multiple URL args",
|
"Set the separator regexp used to separate multiple URL args",
|
||||||
"string", ",\\s");
|
"string", ",\\s");
|
||||||
|
//}}}
|
||||||
|
|
||||||
|
// TODO: mention this to SB devs, they seem keen to provide these
|
||||||
|
// functions to make porting from FF as simple as possible.
|
||||||
|
window.toJavaScriptConsole = function () {
|
||||||
|
toOpenWindowByType("global:console", "chrome://global/content/console.xul");
|
||||||
|
}
|
||||||
|
window.BrowserStop = function () {
|
||||||
|
getBrowser().mCurrentBrowser.stop();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//}}}
|
|
||||||
}; //}}}
|
}; //}}}
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
Reference in New Issue
Block a user