make compatible with 3.6
This commit is contained in:
parent
6faa4d81ba
commit
94b5a2df79
2 changed files with 10 additions and 3 deletions
|
@ -361,6 +361,13 @@ OxFF.prototype = {
|
|||
});
|
||||
},
|
||||
}
|
||||
//4.0 only
|
||||
var NSGetFactory = XPCOMUtils.generateNSGetFactory([OxFF]);
|
||||
|
||||
/**
|
||||
* XPCOMUtils.generateNSGetFactory was introduced in Mozilla 2 (Firefox 4).
|
||||
* XPCOMUtils.generateNSGetModule is for Mozilla 1.9.2 (Firefox 3.6).
|
||||
*/
|
||||
if (XPCOMUtils.generateNSGetFactory)
|
||||
var NSGetFactory = XPCOMUtils.generateNSGetFactory([OxFF]);
|
||||
else
|
||||
var NSGetModule = XPCOMUtils.generateNSGetModule([OxFF]);
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<em:targetApplication>
|
||||
<Description>
|
||||
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
|
||||
<em:minVersion>3.5</em:minVersion>
|
||||
<em:minVersion>3.6</em:minVersion>
|
||||
<em:maxVersion>4.0b9</em:maxVersion>
|
||||
</Description>
|
||||
</em:targetApplication>
|
||||
|
|
Loading…
Reference in a new issue