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

Add more useful header comments to shared XPCOMponents.

This commit is contained in:
Kris Maglione
2009-11-09 13:35:27 -05:00
parent 064f60855c
commit 5de5a79ce5
6 changed files with 30 additions and 14 deletions

View File

@@ -1,7 +1,10 @@
// Header:
const Name = "Vimperator";
// The following doesn't work here, so this module's code is sadly duplicated:
// Components.utils.import("resource://liberator/about-handler.jsm");
/*
* We can't load our modules here, so the following code is sadly
* duplicated: .w !sh
vimdiff ../../*'/components/about-handler.js'
*/
// Copyright (c) 2009 by Doug Kearns
//
@@ -28,9 +31,7 @@ AboutHandler.prototype = {
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;
},