mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 19:47:32 +09:00
[AllAM] De-duplicate amContentHander.js
This commit is contained in:
parent
f8662e9c1f
commit
65984db0eb
3 changed files with 3 additions and 103 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue