1
0
mirror of https://github.com/moparisthebest/FireTray synced 2024-08-13 15:53:47 -04:00

Workaround impossibily to require minVersion for a specific targetPlatform.

We just check at runtime.
This commit is contained in:
foudfou 2014-05-25 21:48:51 +02:00
parent 9afa777c65
commit be74126c96
2 changed files with 6 additions and 3 deletions

View File

@ -20,7 +20,7 @@
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <!-- Firefox -->
<em:minVersion>27.0</em:minVersion>
<em:minVersion>7.0</em:minVersion>
<em:maxVersion>30.0</em:maxVersion>
</Description>
</em:targetApplication>
@ -28,7 +28,7 @@
<em:targetApplication> <!-- Thunderbird -->
<Description>
<em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>
<em:minVersion>27.0</em:minVersion>
<em:minVersion>7.0</em:minVersion>
<em:maxVersion>30.0</em:maxVersion>
</Description>
</em:targetApplication>

View File

@ -68,12 +68,15 @@ firetray.Handler = {
firetray.PrefListener.register(false);
firetray.MailChatPrefListener.register(false);
// version checked during install, so we shouldn't need to care
log.info("OS=" + this.runtimeOS + ", ABI=" + this.runtimeABI + ", XULrunner=" + this.xulVer);
if (FIRETRAY_SUPPORTED_OS.indexOf(this.runtimeOS) < 0) {
let platforms = FIRETRAY_SUPPORTED_OS.join(", ");
log.error("Only "+platforms+" platform(s) supported at this time. Firetray not loaded");
return false;
} else if (this.runtimeOS == "winnt" &&
Services.vc.compare(this.xulVer,"27.0") < 0) {
log.error("FireTray needs Gecko 27 and above on Windows.");
return false;
}
Cu.import("resource://firetray/"+this.runtimeOS+"/FiretrayStatusIcon.jsm");
log.debug("FiretrayStatusIcon "+this.runtimeOS+" imported");