Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

Commit

Permalink
TB64 XXXUtils.generateQI API move, but backwards-compatibile
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehardy committed Dec 19, 2018
1 parent 0bd27a6 commit 3530b05
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions components/thunderlinkCommandLineHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,18 @@ var thunderlinkCommandLineHandler = {
},

// Use ChromeUtils instead of XPCOMUtils here and line 154 for TB64+ (or earlier?)
QueryInterface: XPCOMUtils.generateQI([Ci.nsICommandLineHandler, Ci.nsIClassInfo, Ci.nsIFactory]),
QueryInterface:
(XPCOMUtils.generateQI
&& XPCOMUtils.generateQI([Ci.nsICommandLineHandler, Ci.nsIClassInfo, Ci.nsIFactory]))
|| ChromeUtils.generateQI([Ci.nsICommandLineHandler, Ci.nsIClassInfo, Ci.nsIFactory]),
};

function thunderlinkCommandLineHandlerModule() { }
thunderlinkCommandLineHandlerModule.prototype = {
classID: Components.ID("{547bfe26-688b-4e63-a1da-07da0e8367e1}"),
QueryInterface: XPCOMUtils.generateQI([Components.interfaces.nsIModule]),
QueryInterface:
(XPCOMUtils.generateQI && XPCOMUtils.generateQI([Components.interfaces.nsIModule]))
|| ChromeUtils.generateQI([Components.interfaces.nsIModule]),
_xpcom_factory: thunderlinkCommandLineHandler,
};

Expand Down

0 comments on commit 3530b05

Please sign in to comment.