1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-04 10:35:46 +01:00

Yay XPCSafeJSObjectWrapper.

This commit is contained in:
Kris Maglione
2009-11-03 06:11:53 -05:00
parent 1ce498401e
commit d4b818b7d7
3 changed files with 25 additions and 31 deletions

View File

@@ -412,7 +412,7 @@ const liberator = (function () //{{{
let file = io.File(args[0]);
if (file.exists() && file.isReadable() && file.isFile())
services.get("extensionManager").installItemFromFile(file.file, "app-profile");
services.get("extensionManager").installItemFromFile(file, "app-profile");
else
{
if (file.exists() && file.isDirectory())
@@ -1877,6 +1877,8 @@ const liberator = (function () //{{{
// this function is called when the chrome is ready
startup: function ()
{
try
{
let start = Date.now();
liberator.log("Initializing liberator object...", 0);
@@ -2033,6 +2035,11 @@ const liberator = (function () //{{{
liberator.dump("loaded in " + (Date.now() - start) + " ms");
liberator.log(config.name + " fully initialized", 0);
}
catch (e)
{
liberator.reportError(e);
}
},
shutdown: function ()