1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 10:08:00 +01:00

Move to the chrome://liberator namespace

This commit is contained in:
Kris Maglione
2008-10-09 02:25:19 +00:00
parent a3e898f810
commit 077fdc838a
10 changed files with 39 additions and 49 deletions

View File

@@ -638,7 +638,7 @@ const liberator = (function () //{{{
// with (liberator) means, liberator is the default namespace "inside" eval
eval: function (str)
{
const fileName = "chrome://" + liberator.config.name.toLowerCase() + "/content/liberator.js";
const fileName = "chrome://liberator/content/liberator.js";
const line = new Error().lineNumber + 3;
try
{
@@ -840,7 +840,7 @@ const liberator = (function () //{{{
var helpFile = liberator.options["helpfile"];
if (liberator.config.helpFiles.indexOf(helpFile) != -1)
liberator.open("chrome://" + liberator.config.name.toLowerCase() + "/locale/" + helpFile, where);
liberator.open("chrome://liberator/locale/" + helpFile, where);
else
liberator.echo("Sorry, help file \"" + helpFile + "\" not found");
@@ -849,7 +849,7 @@ const liberator = (function () //{{{
function jumpToTag(file, tag)
{
liberator.open("chrome://" + liberator.config.name.toLowerCase() + "/locale/" + file, where);
liberator.open("chrome://liberator/locale/" + file, where);
// TODO: it would be better wo wait for pageLoad
setTimeout(function () {
var elem = liberator.buffer.getElement('@class="tag" and text()="' + tag + '"');
@@ -1053,7 +1053,7 @@ const liberator = (function () //{{{
liberator.log("Initializing liberator object...", 0);
// components which should be shared across all windows
Components.utils.import("resource://" + liberator.config.name.toLowerCase() + "/storage.jsm", liberator);
Components.utils.import("resource://liberator/storage.jsm", liberator);
// commands must always be the first module to be initialized
loadModule("commands", liberator.Commands); addCommands();