aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlessio Vanni <vannilla@firemail.cc>2019-03-14 10:28:35 +0100
committerAlessio Vanni <vannilla@firemail.cc>2019-03-14 10:28:35 +0100
commit06477d47ccb113847b68af3657438183c5fb12af (patch)
treea91059bd0ab2c003db6f40bd082f72e07b7b0802
parentd6c1aa52f3deb52dd6be7178dae84b6f0f99f8a7 (diff)
downloadematrix-06477d47ccb113847b68af3657438183c5fb12af.tar.lz
ematrix-06477d47ccb113847b68af3657438183c5fb12af.tar.xz
ematrix-06477d47ccb113847b68af3657438183c5fb12af.zip
Use the right property for version checks in Basilisk
-rw-r--r--js/vapi-background.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/js/vapi-background.js b/js/vapi-background.js
index 22210bb..6ca7572 100644
--- a/js/vapi-background.js
+++ b/js/vapi-background.js
@@ -2608,10 +2608,7 @@ vAPI.toolbarButton = {
return;
}
- // The following guard seems to always be false for Basilisk, so
- // the button will always be added using the code from this
- // branch.
- if ( Services.vc.compare(Services.appinfo.platformVersion, '36.0') >= 0 ) {
+ if ( Services.vc.compare(Services.appinfo.version, '36.0') >= 0 ) {
return null;
}
var CustomizableUI = null;
@@ -2747,7 +2744,7 @@ vAPI.toolbarButton = {
if ( tbb.init !== null ) {
return;
}
- if ( Services.vc.compare(Services.appinfo.platformVersion, '36.0') < 0 ) {
+ if ( Services.vc.compare(Services.appinfo.version, '36.0') < 0 ) {
return null;
}
var CustomizableUI = null;