1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 02:47:59 +01:00
Files
pentadactyl-pm/muttator/components/about-handler.js
Kris Maglione 33e5ea582c Fix some symlink woes. Closes issue #140.
--HG--
rename : common/components/about-handler.js => muttator/components/about-handler.js
rename : common/components/commandline-handler.js => muttator/components/commandline-handler.js
rename : common/components/about-handler.js => vimperator/components/about-handler.js
rename : common/components/commandline-handler.js => vimperator/components/commandline-handler.js
rename : common/components/about-handler.js => xulmus/components/about-handler.js
rename : common/components/commandline-handler.js => xulmus/components/commandline-handler.js
2009-11-05 16:09:49 -05:00

44 lines
1.3 KiB
JavaScript

// Header:
const Name = "Muttator";
// The following doesn't work here, so this module's code is sadly suplicated:
// Components.utils.import("resource://liberator/about-handler.jsm");
// Copyright (c) 2009 by Doug Kearns
//
// This work is licensed for reuse under an MIT license. Details are
// given in the LICENSE.txt file included with this file.
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
const Cc = Components.classes;
const Ci = Components.interfaces;
const name = Name.toLowerCase();
function AboutHandler() {}
AboutHandler.prototype = {
classDescription: "About " + Name + " Page",
classID: Components.ID("81495d80-89ee-4c36-a88d-ea7c4e5ac63f"),
contractID: "@mozilla.org/network/protocol/about;1?what=" + name,
QueryInterface: XPCOMUtils.generateQI([Ci.nsIAboutModule]),
newChannel: function (uri)
{
let channel = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService)
.newChannel("chrome://" + name + "/content/about.html", null, null);
channel.originalURI = uri;
return channel;
},
getURIFlags: function (uri) Ci.nsIAboutModule.ALLOW_SCRIPT,
};
function NSGetModule(compMgr, fileSpec) XPCOMUtils.generateModule([AboutHandler]);
// vim: set fdm=marker sw=4 ts=4 et: