Skip to content

Commit

Permalink
Fixing features for Antigravity and Dynamic_filter (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreySemjonov authored May 18, 2020
1 parent 765bdf4 commit 741fd0c
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions src/js/Features.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,16 @@ var Features = function (config) {

if (semver.gte(CONFIG.apiVersion, "1.36.0")) {
//quick & dirty 0.3.0
if (semver.lt(CONFIG.flightControllerVersion, "0.3.0")) {
if (semver.lt(CONFIG.apiVersion, "1.47.0")) {
features.push(
{bit: 28, group: 'other', name: 'ANTI_GRAVITY'}
{bit: 28, group: 'other', name: 'ANTI_GRAVITY'},
{bit: 29, group: 'other', name: 'DYNAMIC_FILTER'}
);
} else {
features.push(
{bit: 28, group: 'other', name: 'DYNAMIC_FILTER'}
);
}
features.push(
{bit: 29, group: 'other', name: 'DYNAMIC_FILTER'}
);
}

if (!semver.gte(CONFIG.apiVersion, "1.36.0")) {
Expand All @@ -102,9 +104,15 @@ var Features = function (config) {
}
if (semver.gte(CONFIG.apiVersion, "1.39.0"))
{
features.push(
{ bit: 30, group: 'other', name: 'LEGACY_SA_SUPPORT', haveTip: true }
);
if (semver.lt(CONFIG.apiVersion, "1.47.0")) {
features.push(
{ bit: 30, group: 'other', name: 'LEGACY_SA_SUPPORT', haveTip: true }
);
} else {
features.push(
{ bit: 29, group: 'other', name: 'LEGACY_SA_SUPPORT', haveTip: true }
);
}
}
}

Expand Down

0 comments on commit 741fd0c

Please sign in to comment.