1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-15 21:03:32 +01:00

Define missing window#BrowserStop and window#toJavascriptConsole.

This commit is contained in:
Doug Kearns
2009-03-20 16:04:23 +11:00
parent 5d652b78e6
commit 8ae0b211f1
2 changed files with 13 additions and 15 deletions

View File

@@ -182,6 +182,7 @@ const config = { //{{{
liberator.loadModule("hints", Hints);
// Load the Player module
liberator.loadModule("player", Player);
////////////////////////////////////////////////////////////////////////////////
////////////////////// STYLES //////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
@@ -489,8 +490,17 @@ const config = { //{{{
options.add(["urlseparator"],
"Set the separator regexp used to separate multiple URL args",
"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: