Skip to content

Commit 49eef32

Browse files
committed
removed 'google analytics'; fixed issues popping up subsequently due to less latency (settings menu only working as long as not connected); adjusted and updated 'privacy_policy.html'; removed crust; refined app initialization flow; formatting
1 parent dc9d42c commit 49eef32

23 files changed

+42
-511
lines changed

assets/osx/app-icon.png

-3.47 KB
Loading

assets/osx/dmg-background.png

100755100644
-12.9 KB
Loading

assets/osx/[email protected]

-39.5 KB
Binary file not shown.

libraries/analytics.js

-58
This file was deleted.

manifest.json

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
"https://api.openstreetmap.org/",
2222
"https://*.github.com/",
2323
"https://*.githubusercontent.com/",
24-
"http://*.baseflight.net/",
25-
"https://*.amazonaws.com/",
26-
"https://*.betaflight.tech/",
27-
"https://www.google-analytics.com/",
2824
"serial",
2925
"usb",
3026
"storage",

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"license": "GPL-3.0",
3838
"dependencies": {
3939
"bluebird": "^3.7.0",
40-
"i18next": "^17.0.11",
41-
"i18next-xhr-backend": "^3.1.1",
40+
"i18next": "^18.0.1",
41+
"i18next-xhr-backend": "^3.2.0",
4242
"inflection": "1.12.0",
4343
"jbox": "1.0.5",
4444
"jquery": "3.4.1",

src/js/Analytics.js

-174
This file was deleted.

src/js/Features.js

-10
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,10 @@ var Features = function (config) {
105105

106106
self._features = features;
107107
self._featureMask = 0;
108-
109-
self._analyticsChanges = {};
110108
};
111109

112110
Features.prototype.getMask = function () {
113111
var self = this;
114-
115-
analytics.sendChangeEvents(analytics.EVENT_CATEGORIES.FLIGHT_CONTROLLER, self._analyticsChanges);
116-
self._analyticsChanges = {};
117-
118112
return self._featureMask;
119113
};
120114

@@ -228,7 +222,6 @@ Features.prototype.updateData = function (featureElement) {
228222
self._featureMask = bit_clear(self._featureMask, bit);
229223
featureValue = 'Off';
230224
}
231-
self._analyticsChanges['Feature' + self.findFeatureByBit(bit).name] = featureValue;
232225
} else if (featureElement.prop('localName') === 'select') {
233226
var controlElements = featureElement.children();
234227
var selectedBit = featureElement.val();
@@ -243,9 +236,6 @@ Features.prototype.updateData = function (featureElement) {
243236
self._featureMask = bit_clear(self._featureMask, bit);
244237
}
245238
}
246-
if (selectedFeature) {
247-
self._analyticsChanges['FeatureGroup-' + selectedFeature.group] = selectedFeature.name;
248-
}
249239
}
250240
}
251241
};

src/js/backup_restore.js

-3
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ function configuration_backup(callback) {
255255
return;
256256
}
257257

258-
analytics.sendEvent(analytics.EVENT_CATEGORIES.FLIGHT_CONTROLLER, 'Backup');
259258
console.log('Write SUCCESSFUL');
260259
if (callback) callback();
261260
};
@@ -339,8 +338,6 @@ function configuration_restore(callback) {
339338
configuration.FEATURE_CONFIG.features = features;
340339
}
341340

342-
analytics.sendEvent(analytics.EVENT_CATEGORIES.FLIGHT_CONTROLLER, 'Restore');
343-
344341
configuration_upload(configuration, callback);
345342
} else {
346343
GUI.log(i18n.getMessage('backupFileIncompatible'));

0 commit comments

Comments
 (0)