mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-14 19:15:45 +01:00
And xulmus was born.
This commit is contained in:
@@ -26,6 +26,7 @@ the provisions above, a recipient may use your version of this file under
|
||||
the terms of any one of the MPL, the GPL or the LGPL.
|
||||
}}} ***** END LICENSE BLOCK *****/
|
||||
|
||||
|
||||
/** @scope modules */
|
||||
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm", modules);
|
||||
@@ -70,7 +71,7 @@ const liberator = (function () //{{{
|
||||
let nError = 0;
|
||||
function loadModule(name, func)
|
||||
{
|
||||
let message = "Loading module " + name + "...";
|
||||
let message = "Loading module " + name + "...";
|
||||
try
|
||||
{
|
||||
liberator.log(message, 0);
|
||||
@@ -81,7 +82,10 @@ const liberator = (function () //{{{
|
||||
catch (e)
|
||||
{
|
||||
if (nError++ == 0)
|
||||
window.toJavaScriptConsole();
|
||||
liberator.dump("Error loading module - "+ name + "..");
|
||||
liberator.dump(e);
|
||||
liberator.dump(e.stack);
|
||||
window.toJavaScriptConsole();
|
||||
liberator.reportError(e);
|
||||
}
|
||||
}
|
||||
@@ -1215,8 +1219,6 @@ const liberator = (function () //{{{
|
||||
startup: function ()
|
||||
{
|
||||
let start = Date.now();
|
||||
liberator.log("Initializing liberator object...", 0);
|
||||
|
||||
config.features = config.features || [];
|
||||
config.features.push(getPlatformFeature());
|
||||
config.defaults = config.defaults || {};
|
||||
@@ -1225,7 +1227,7 @@ const liberator = (function () //{{{
|
||||
config.mailModes = config.mailModes || [modes.NORMAL];
|
||||
// TODO: suitable defaults?
|
||||
//config.mainWidget
|
||||
//config.mainWindowID
|
||||
//config.mainWindowID
|
||||
//config.visualbellWindow
|
||||
//config.styleableChrome
|
||||
config.autocommands = config.autocommands || [];
|
||||
|
||||
Reference in New Issue
Block a user