[AllAM] De-duplicate amContentHander.js

This commit is contained in:
NTD 2018-06-26 15:13:40 -04:00 • committed by Roy Tam
commit 65984db0eb
3 changed files with 3 additions and 103 deletions

View file

@ -28,7 +28,7 @@ amContentHandler.prototype = {
* @param aRequest
* The nsIRequest dealing with the content
*/
handleContent: function XCH_handleContent(aMimetype, aContext, aRequest) {
handleContent: function(aMimetype, aContext, aRequest) {
if (aMimetype != XPI_CONTENT_TYPE)
throw Cr.NS_ERROR_WONT_HANDLE_CONTENT;
@ -89,7 +89,7 @@ amContentHandler.prototype = {
classID: Components.ID("{7beb3ba8-6ec3-41b4-b67c-da89b8518922}"),
QueryInterface: XPCOMUtils.generateQI([Ci.nsIContentHandler]),
log : function XCH_log(aMsg) {
log : function(aMsg) {
let msg = "amContentHandler.js: " + (aMsg.join ? aMsg.join("") : aMsg);
Cc["@mozilla.org/consoleservice;1"].getService(Ci.nsIConsoleService).
logStringMessage(msg);