mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 22:42:26 +01:00
More completion stuff.
This commit is contained in:
@@ -57,9 +57,7 @@ const liberator = (function () //{{{
|
||||
catch (e)
|
||||
{
|
||||
toJavaScriptConsole();
|
||||
if (Components.utils.reportError)
|
||||
Components.utils.reportError(e);
|
||||
liberator.dump(e);
|
||||
liberator.reportError(e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1087,6 +1085,23 @@ const liberator = (function () //{{{
|
||||
goQuitApplication();
|
||||
},
|
||||
|
||||
reportError: function (error)
|
||||
{
|
||||
if (Components.utils.reportError)
|
||||
Components.utils.reportError(error);
|
||||
let obj = {
|
||||
toString: function () error.toString(),
|
||||
stack: { toString: function () "\n" + error.stack.replace(/^/mg, "\t") }
|
||||
};
|
||||
for (let [k, v] in Iterator(error))
|
||||
{
|
||||
if (!(k in obj))
|
||||
obj[k] = v;
|
||||
}
|
||||
liberator.dump(obj);
|
||||
liberator.dump("");
|
||||
},
|
||||
|
||||
restart: function ()
|
||||
{
|
||||
const nsIAppStartup = Components.interfaces.nsIAppStartup;
|
||||
|
||||
Reference in New Issue
Block a user